Documentation ¶
Index ¶
- func CheckProcessExist(pid int) bool
- func CreateFileTemlate(folderNeedCreate bool, folderPath string, file string, tmp string, ...) error
- func DownloadFile(filepath string, url string) error
- func Exists(path string) bool
- func GetExecDirectory() string
- func IsHiddenDirectory(path string) bool
- 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 Will return true if the process with PID exists.
func CreateFileTemlate ¶
func CreateFileTemlate(folderNeedCreate bool, folderPath string, file string, tmp string, data interface{}) error
folderNeedCreate 表明路径是否需要创建 folderPath/file 确定了目标文件的路径 tmp 为模板字符串, data为数据
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.