//
pkg.gl
Category
github.com/joshua-chen/go-commons
utils
file
package
1.1.23
Repository:
https://github.com/joshua-chen/go-commons.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
10
Dependents
1
Files
203 SLOC
#
Functions
CopyDir
No description provided by the author
CopyFile
No description provided by the author
CopyFile2
使用ioutil.WriteFile()和ioutil.ReadFile().
CopyFile3
使用os.Read()和os.Write().
GetUUID
.
If
.
ListDir
获取指定路径下的所有文件,只搜索当前路径,不进入下一级目录,可匹配后缀过滤(suffix为空则不过滤)*/.
WalkDir
获取指定路径下以及所有子目录下的所有文件,可匹配后缀过滤(suffix为空则不过滤)*/.