Documentation
¶
Index ¶
- func DeleteFile(path string) error
- func GetExtensionName(fileName string) (string, error)
- func OpenFileWithAPPEND(path string) (*os.File, error)
- func ReadFile(path string) (string, error)
- func ReadFileToByte(path string, bufSize int, callback func([]byte)) error
- func WriteLine(path string, data string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetExtensionName ¶
GetExtensionName 获取文件名拓展名
func OpenFileWithAPPEND ¶
OpenFileWithAPPEND 追加打开文件(别忘了关闭文件)
func ReadFileToByte ¶
ReadFileToByte 分块读取文件,第三个参数是每块的回调
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.