Documentation ¶
Index ¶
- func Abs(path string) (string, error)
- func CheckType(currType string, allowTypes []string) bool
- func GetDirNameExt(path string) (string, string, string, error)
- func GetHomeDir() string
- func GetOutFullName(in string, params model.Params) (string, error)
- func GetOutFullNameFromIn(in string, option func(outDir *string, outName *string, outExt *string)) (string, error)
- func GetOutFullNameFromOut(out string, option func(outDir *string, outName *string, outExt *string)) (string, error)
- func GetType(path string) (string, error)
- func InitFolder(fullName string) error
- func IsDir(path string) bool
- func IsExists(path string) bool
- func SaveFile(bytes []byte, fileName string) error
- func TransformToLogrusLevel(configLevel string) (uint32, error)
- func UnZipGithubArchive(zipFile string, dest string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDirNameExt ¶
GetDirNameExt 输入文件路径,返回文件夹、文件名、文件拓展名(绝对路径)
func GetOutFullName ¶
GetOutFullName ...
func GetOutFullNameFromIn ¶
func GetOutFullNameFromIn(in string, option func(outDir *string, outName *string, outExt *string)) (string, error)
GetOutFullNameFromIn ...
func GetOutFullNameFromOut ¶
func GetOutFullNameFromOut(out string, option func(outDir *string, outName *string, outExt *string)) (string, error)
GetOutFullNameFromOut ...
func TransformToLogrusLevel ¶
TransformToLogrusLevel ...
func UnZipGithubArchive ¶
UnZipGithubArchive 解压缩 github 归档zip文件到指定目录。 并且忽略 github 归档自动生成的外层文件夹。
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.