mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-16 18:52:27 +08:00
update: update comment for ReadFileByLine in file.go
This commit is contained in:
@@ -97,8 +97,8 @@ func ReadFileToString(path string) (string, error) {
|
|||||||
return string(bytes), nil
|
return string(bytes), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// ReadFileByLine
|
// ReadFileByLine read file line by line
|
||||||
func ReadFileByLine(path string)([]string, error) {
|
func ReadFileByLine(path string) ([]string, error) {
|
||||||
f, err := os.Open(path)
|
f, err := os.Open(path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
Reference in New Issue
Block a user