Documentation ¶
Index ¶
- func AppendFile(path string, data []string) error
- func CleanFile(path string) error
- func CopyFile(oldPath, newPath string) error
- func CreateDir(dir string) error
- func CreateFile(path string) error
- func CreatePath(relativePath string) error
- func CurrentDir() (string, error)
- func HierarchyDir(dir string) ([]string, error)
- func IsExistDir(dir string) (bool, error)
- func IsExistFile(path string) (bool, error)
- func LsDir(dir string) ([]string, error)
- func ReadFileByLine(path string) ([]string, error)
- func ReadFileObj[T any](path string) ([]T, error)
- func ReadPath(relativePath string) ([]byte, error)
- func RemoveDir(dir string) error
- func RemoveFile(path string) error
- func RenameFile(oldPath, newPath string) error
- func TruncateFile(path string, size int64) error
- func Unzip(zipFile, destFolder string) error
- func WriteFile(path string, data []string) error
- func WriteFileObj[T any](path string, data T) error
- func WritePath(relativePath string, content []byte) error
- func Zip(zipFileName string, files []string) error
- type FileInfoStruct
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendFile ¶
func CreateFile ¶
func CreatePath ¶
func CurrentDir ¶
func HierarchyDir ¶
func IsExistDir ¶
func IsExistFile ¶
func ReadFileByLine ¶
func ReadFileObj ¶
func RemoveFile ¶
func RenameFile ¶
func TruncateFile ¶
func WriteFileObj ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.