file

package
v0.2.27 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFile

func DeleteFile(path string) error

DeleteFile 删除文件

func GetExtensionName

func GetExtensionName(fileName string) (string, error)

GetExtensionName 获取文件名拓展名

func OpenFileWithAPPEND

func OpenFileWithAPPEND(path string) (*os.File, error)

OpenFileWithAPPEND 追加打开文件(别忘了关闭文件)

func ReadFile

func ReadFile(path string) (string, error)

ReadFile 读取整个文件

func ReadFileToByte

func ReadFileToByte(path string, bufSize int, callback func([]byte)) error

ReadFileToByte 分块读取文件,第三个参数是每块的回调

func WriteLine

func WriteLine(path string, data string)

WriteLine 逐行写入

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL