1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-09 23:22:28 +08:00

doc: update fileutils package document

This commit is contained in:
dudaodong
2023-04-26 10:44:12 +08:00
parent 4859f3ca23
commit dcdb29334d
3 changed files with 280 additions and 5 deletions

View File

@@ -402,7 +402,7 @@ func MTime(filepath string) (int64, error) {
return f.ModTime().Unix(), nil
}
// MTime returns file modified time, param `shaType` should be 1, 256 or 512.
// MTime returns file sha value, param `shaType` should be 1, 256 or 512.
// Play: todo
func Sha(filepath string, shaType ...int) (string, error) {
file, err := os.Open(filepath)
@@ -436,7 +436,7 @@ func Sha(filepath string, shaType ...int) (string, error) {
}
// MTime returns file modified time.
// ReadCsvFile read file content into slice.
// Play: todo
func ReadCsvFile(filepath string) ([][]string, error) {
f, err := os.Open(filepath)