Documentation ¶
Index ¶
- func CheckPathExists(path string) (bool, error)
- func CopyFile(src, dest string) error
- func CreatePath(path string, override bool) error
- func CreatePaths(override bool, paths ...string) error
- func GetGOPATH() (string, error)
- func GetRealAddrByNetwork(addr string) string
- func GetRealIPv4ByNetwork(name string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPathExists ¶
CheckPathExists checks if the path is exist or not
func CreatePath ¶
CreatePath creates path directory and if override is specified the directory will be removed first
func CreatePaths ¶
CreatePaths creates a batch of directories
func GetRealAddrByNetwork ¶
utils to help get real ip like using this kind of format 'eth1:8088'
func GetRealIPv4ByNetwork ¶
utils to help get real ip using name like 'eth1'
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.