Versions in this module Expand all Collapse all v1 v1.0.0 Jan 16, 2022 Changes in this version + 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 int + const TypeImage