1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-04 12:52:28 +08:00

update: update comment for ReadFileByLine in file.go

This commit is contained in:
dudaodong
2021-12-10 10:51:50 +08:00
parent afec27fb4e
commit 0cf59323ff

View File

@@ -97,8 +97,8 @@ func ReadFileToString(path string) (string, error) {
return string(bytes), nil
}
// ReadFileByLine
func ReadFileByLine(path string)([]string, error) {
// ReadFileByLine read file line by line
func ReadFileByLine(path string) ([]string, error) {
f, err := os.Open(path)
if err != nil {
return nil, err