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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user