Documentation ¶
Index ¶
- func CheckContainExt(t FileType, name string) bool
- func CheckMaxSize(t FileType, f multipart.File) bool
- func CheckPermission(dst string) bool
- func CheckSavePath(dst string) bool
- func CreateSavePath(dst string, perm os.FileMode) error
- func GetFileByte(file *multipart.FileHeader) ([]byte, error)
- func GetFileExt(name string) string
- func GetFileName(name string) string
- func GetSavePath() string
- func SaveFile(file *multipart.FileHeader, dst string) error
- func SaveFileByte(file *[]byte, dst string) error
- type FileType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckContainExt ¶
func CheckPermission ¶
func CheckSavePath ¶
func GetFileByte ¶
func GetFileByte(file *multipart.FileHeader) ([]byte, error)
func GetFileExt ¶
func GetFileName ¶
func GetSavePath ¶
func GetSavePath() string
func SaveFileByte ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.