package
0.0.0-20241014075912-8c00ab9ae07f
Repository: https://github.com/treeyh/soc-go-common.git
Documentation: pkg.go.dev
# Functions
ExistFile 判断文件是否存在.
GetCurrentAbPath 最终方案-全兼容.
GetCurrentAbPathByCaller 获取当前执行文件绝对路径(go run).
GetCurrentAbPathByExecutable 获取当前执行文件绝对路径.
GetCurrentPath 获取调用方当前目录路径.
GetDirSon 返回目录下子文件/目录列表.
GetDirWalk 递归获取路径子文件,目录列表.
GetFileModTime 获取文件修改时间.
GetTmpDir 获取系统临时目录,兼容go run.
IsDir 是否是目录.
ReadSmallFile 读取小文件,一次性读取.
WriteFile 写文件.