Documentation
¶
Index ¶
- Variables
- func AbsPath(_file string) string
- func IsDir(file_ string) bool
- func IsEmptyDir(src string) bool
- func IsExist(file_ string) bool
- func IsFile(file_ string) bool
- func ListDir(_src string) (srcNames []string, _dirNames []string)
- func ListDirDeep(_src string) (srcs []string, _folders []string)
- func Slice2Map(_slice []string, m_ map[string]struct{})
- func String2Int(str string) int
- func WarpErr(fc func() (interface{}, error)) interface{}
- func WslPathConvent(_wslPath string) string
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func IsEmptyDir ¶
func ListDirDeep ¶
func String2Int ¶
func WarpErr ¶
func WarpErr(fc func() (interface{}, error)) interface{}
包裹一个函数 其返回值是 interface{} 类型 err 如果不为nil 则 panic
func WslPathConvent ¶
cover windows path to wsl path D:\soft\code --> /mnt/d/soft/code
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.