Documentation
¶
Index ¶
- func GetDirList(dir string, fun func(path string) bool) error
- func If(condition bool, trueVal, falseVal string) string
- func Read(path string) ([]byte, error)
- func ReadLine(path string, callback func(line []byte)) error
- func ReadLineChunk(path string, offset int, size int, callback func(list []string)) error
- func ReadLineWithBreak(path string, callback func(line []byte) bool) error
- func ReadLineWithCxt(cxt context.Context, path string, callback func(line []byte)) error
- func Write(path string, content []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDirList ¶ added in v0.2.50
GetDirList 获取目标文件夹下的所有文件(包含子目录)
func ReadLineChunk ¶ added in v0.2.44
func ReadLineWithBreak ¶ added in v0.2.51
ReadLineWithBreak 逐行读取可退出
func ReadLineWithCxt ¶ added in v0.2.49
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.