Documentation ¶
Index ¶
- func ByteCountIEC(b int) string
- func FileExist(path string) bool
- func GetParentDirectory(directory string) string
- func IsDirectory(filename string) bool
- func IsFile(filename string) bool
- func IsHiddenFile(name string) bool
- func IsTextFile(filepath string) bool
- func MkFileIfNotExist(path string)
- func MkdirIfNotExist(path string)
- func ParseFileContentType(fileName string) string
- func Substr(s string, pos, length int) string
- func UploadFileTo(fh *multipart.FileHeader, destDirectory string) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteCountIEC ¶
func GetParentDirectory ¶
func IsDirectory ¶
func IsHiddenFile ¶
func IsTextFile ¶
func MkFileIfNotExist ¶
func MkFileIfNotExist(path string)
func MkdirIfNotExist ¶
func MkdirIfNotExist(path string)
func ParseFileContentType ¶
func UploadFileTo ¶
func UploadFileTo(fh *multipart.FileHeader, destDirectory string) (int64, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.