Documentation ¶
Index ¶
- func CopyDir(src string, dst string) (err error)
- func CopyFile(src, dst string) (err error)
- func Download(filepath string, url string) (err error)
- func EnsurerDir(dir string) (err error)
- func GetCurrentExecPath() (scriptPath string)
- func GetHostIP() (ip net.IP)
- func GetLangFromFileName(fileName string) (lang string)
- func HandleError(err error)
- func IsPathExists(path string) (bool, error)
- func TarDir(srcDir string, desFileName string)
- func Unzip(source string, target string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyDir ¶
CopyDir recursively copies a directory tree, attempting to preserve permissions. Source directory must exist, destination directory must *not* exist. Symlinks are ignored and skipped.
func GetCurrentExecPath ¶
func GetCurrentExecPath() (scriptPath string)
GetCurrentExecPath parses a path from running executable/go file
func GetLangFromFileName ¶
get programming language from file name extension
func HandleError ¶
func HandleError(err error)
func IsPathExists ¶
IsPathExists checks whether a path exists or if failed to check
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.