md

package
v0.0.0-...-097943f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FileUploadDir - the root directory of the upload files
	FileUploadDir = "files"
	// PictureDir - save pictures file
	PictureDir = "picture"
	// VideoDir - save videos file
	VideoDir = "video"
	// OtherDir - files other than video and picture
	OtherDir = "other"
)

Variables

This section is empty.

Functions

func CheckDir

func CheckDir(path ...string) error

CheckDir -

func ClassifyBySuffix

func ClassifyBySuffix(suffix string) string

ClassifyBySuffix -

func CopyFile

func CopyFile(path string, file []byte) error

CopyFile -

func FilePath

func FilePath() map[string]string

FilePath -

func MD5

func MD5(file []byte) (string, error)

MD5 -

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL