Documentation
¶
Index ¶
- func CheckProcessExist(pid int) bool
- func CopyFile(source, destination string) error
- func CopyFolder(source, destination string) error
- func DownloadFile(filepath string, url string) error
- func Exists(path string) bool
- func GetExecDirectory() string
- func GetRootDirectory() (string, error)
- func IsHiddenDirectory(path string) bool
- func KillProcess(pid int) error
- func PrettyPrint(arr [][]string)
- func SubDir(folder string) ([]string, error)
- func Unzip(src string, dest string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckProcessExist ¶
CheckProcessExist 检查进程pid是否存在,如果存在的话,返回true
func CopyFolder ¶ added in v1.0.0
CopyFolder 将一个目录复制到另外一个目录中
func DownloadFile ¶
DownloadFile will download a url to a local file. It's efficient because it will write as it downloads and not load the whole file into memory.
func GetRootDirectory ¶ added in v1.0.8
GetRootDirectory 获取当前项目根目录
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.