Versions in this module Expand all Collapse all v1 v1.0.1 Oct 14, 2022 Changes in this version + func FormatSize(fileSize int64) (size string) v1.0.0 Jun 2, 2022 Changes in this version + func AppendStrWithWriter(writer *bufio.Writer, content string) (w *bufio.Writer, re error) + func CheckExist(src string) bool + func CheckPermission(src string) bool + func CopyFile(source, target string, over bool) error + func CreatePath(path string, perm os.FileMode) (bool, error) + func CreatePathWithDefaultMode(path string) string + func CurrPath() string + func DeleteFile(target string) + func Exist(path string) (bool, error) + func GetExt(fileName string) string + func GetFileMode(num int) os.FileMode + func GetFiles(path string, filter func(name string, dir bool) bool, option GetFilesOption) ([]string, error) + func GetImgType(p string) (string, error) + func GetSize(f multipart.File) (int, error) + func GetSubDirs(path string, filter func(name string) bool) ([]string, error) + func GetType(p string) (string, error) + func IsNotExistMkDir(src string) error + func Join(str ...string) string + func LastPathName(fullpath string) string + func MkDir(src string) error + func MoveFile(source, target string) + func Open(name string, flag int, perm os.FileMode) (*os.File, error) + func ReadFile(filePath string) (string, error) + func ReplaceStr(src, dst string, rmap map[string]string) error + func WriteFile(filePath string, content string) (re error) + type GetFilesOption struct + func NewGetFilesOption() GetFilesOption