Documentation ¶
Overview ¶
Package fileutil 实现了一些文件操作的基本功能
Index ¶
- func ClearFile(path string) error
- func CopyFile(srcFilePath string, dstFilePath string) error
- func CreateFile(path string) bool
- func FileMode(path string) (fs.FileMode, error)
- func IsDir(path string) bool
- func IsExist(path string) bool
- func IsLink(path string) bool
- func IsNotExistMkDir(src string) error
- func ListFileNames(path string) ([]string, error)
- func MiMeType(file any) string
- func MkDir(src string) error
- func ReadFileByLine(path string) ([]string, error)
- func ReadFileToString(path string) (string, error)
- func RemoveFile(path string) error
- func UnZip(zipFile string, destPath string) error
- func Zip(filePath string, destPath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadFileToString ¶
ReadFileToString 返回文件内容的字符串
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.