Documentation ¶
Index ¶
- func CheckAndCreateMkDir(path string)
- func CheckAndCreateMkFile(path string)
- func CheckExist(src string) bool
- func CheckNotExist(src string) bool
- func CheckPermission(src string) bool
- func DetectContentType(filepath string) string
- func GetExt(fileName string) string
- func GetSize(f multipart.File) (int, error)
- func IsNotExistMkDir(src string) error
- func MD5Hex(filepath string) string
- func MkDir(src string) error
- func MkFile(src string) error
- func MkFileAll(path string) error
- func MkFilesPathDir(path string) error
- func MustOpen(fileName, filePath string) (*os.File, error)
- func Open(name string, flag int, perm os.FileMode) (*os.File, error)
- func PathExist(path string) bool
- func UserHomeAbs(filename string) string
- func Visit(dir string, suffix string, visitor func(filename string) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAndCreateMkDir ¶
func CheckAndCreateMkDir(path string)
CheckAndCreateMkDir check if exists
func CheckAndCreateMkFile ¶
func CheckAndCreateMkFile(path string)
CheckAndCreateMkFile check if exists
func CheckPermission ¶
CheckPermission check if the file has permission
func DetectContentType ¶
DetectContentType returns the file content-type
func IsNotExistMkDir ¶
IsNotExistMkDir create a directory if it does not exist
func MkFilesPathDir ¶
func UserHomeAbs ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.