Documentation ¶
Index ¶
- Variables
- func CopyFile(src, dst string) (int64, error)
- func GetAbsolutePath(path string) (result string)
- func GetCurrentDirectory() string
- func GetNowStr() string
- func IsDir(path string) (bool, error)
- func Mkdir(dirPath string) (string, error)
- func PathContains(paths []string, filePath string) (bool, string)
- func PathExists(path string) (bool, error)
- func ReadFile(filePath string) []byte
- func ReadFileToSet(filePath string) set.Set
- func WinPathToCyg(winPath string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var IsCygwin bool
Functions ¶
func GetAbsolutePath ¶
GetAbsolutePath 获取真实的绝对路径,并把路径分割符换成'/'
func PathContains ¶
PathContains 判断是否是src路径,如果是则返回src路径
func ReadFileToSet ¶ added in v0.0.2
ReadFileToSet 按行读取文件为set
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.