Documentation ¶
Overview ¶
Package file 文件操作工具
Index ¶
- func Compress(files []*os.File, dest string) error
- func CreateAndWrite(filePath string, data []byte, force bool) error
- func DeCompressTar(tarFile, dest string) error
- func DeCompressZip(zipFile, dest string) error
- func PathExists(path string) (bool, error)
- func ReadFileByLine(filePath string) ([]string, error)
- func ReadFileFirstLine(filePath string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAndWrite ¶
CreateAndWrite 创建并写入内容到文件中
func ReadFileByLine ¶
func ReadFileByLine(filePath string) ([]string, error)
ReadFileByLine 从文件中逐行读取并返回字符串数组
func ReadFileFirstLine ¶
func ReadFileFirstLine(filePath string) (string, error)
ReadFileFirstLine 从文件中逐行读取并返回字符串数组
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.