Documentation ¶
Index ¶
- func AbsolutePath(p string) (string, error)
- func CopyDir(source string, dest string) (err error)
- func CopyFile(source string, dst string) (err error)
- func FileExists(path string) bool
- func FormatBytes(size int64) string
- func HasFileOfExt(path string, exts []string) bool
- func IsImageExt(filename string) bool
- func ReadFileAndIgnoreUTF8BOM(filename string) ([]byte, error)
- func RemoveDir(dir string) error
- func Round(val float64, places int) float64
- type FileList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AbsolutePath ¶ added in v0.10.1
func FileExists ¶ added in v0.10.1
FileExists reports whether the named file or directory exists.
func FormatBytes ¶ added in v0.10.1
func HasFileOfExt ¶ added in v0.10.1
判断指定目录下是否存在指定后缀的文件
func ReadFileAndIgnoreUTF8BOM ¶ added in v0.10.1
忽略字符串中的BOM头
Types ¶
Click to show internal directories.
Click to hide internal directories.