Documentation ¶
Index ¶
- func ExistFile(filePath string) bool
- func GetCurrentAbPath() string
- func GetCurrentAbPathByCaller() string
- func GetCurrentAbPathByExecutable() string
- func GetCurrentPath() string
- func GetDirSon(filePath string) ([]os.FileInfo, error)
- func GetDirWalk(filePath string) (map[string]os.FileInfo, error)
- func GetFileModTime(filePath string) (time.Time, error)
- func GetTmpDir() string
- func IsDir(filePath string) (bool, error)
- func ReadSmallFile(filePath string) (*string, errors.AppError)
- func WriteFile(filePath, content string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrentAbPathByCaller ¶
func GetCurrentAbPathByCaller() string
GetCurrentAbPathByCaller 获取当前执行文件绝对路径(go run)
func GetCurrentAbPathByExecutable ¶
func GetCurrentAbPathByExecutable() string
GetCurrentAbPathByExecutable 获取当前执行文件绝对路径
func GetDirWalk ¶
GetDirWalk 递归获取路径子文件,目录列表
func GetFileModTime ¶
GetFileModTime 获取文件修改时间
func ReadSmallFile ¶
ReadSmallFile 读取小文件,一次性读取
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.