Documentation ¶
Index ¶
- func CreatePathIfNotExists(path string) error
- func GetCST8Time(t time.Time) time.Time
- func GetMPFDContentType(file *multipart.FileHeader) (string, error)
- func GetRandomString(n int) string
- func IF(f bool, a interface{}, b interface{}) interface{}
- func IsExists(path string) bool
- func IsInStringSlice(key string, str []string) bool
- func SaveUploadedFile(file *multipart.FileHeader, dst string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePathIfNotExists ¶
func GetMPFDContentType ¶
func GetMPFDContentType(file *multipart.FileHeader) (string, error)
GetMPFDContentType 根据gin文档,FileName不可靠,使用文件头特征识别mime
func GetRandomString ¶
func IsInStringSlice ¶
func SaveUploadedFile ¶
func SaveUploadedFile(file *multipart.FileHeader, dst string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.