Documentation ¶
Index ¶
- func CheckErr(msg interface{})
- func CheckSocket(hostPort string, proto string) bool
- func FileExists(filename string) bool
- func IsDir(dir string) (bool, error)
- func PrettyPrint(v interface{}) (err error)
- func PrettyString(v interface{}) string
- func PrintAndExit(msg string)
- func ReadUint64(data []byte) (ret uint64)
- func Unzip(src string, destination string) ([]string, error)
- func YamlPrinter(t interface{}, isColor ...bool) error
- func YamlString(t interface{}) string
- func ZipDir(source, target string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckSocket ¶
CheckSocket Return if given IP:PORT bind open or not, network must must be "tcp", "tcp4", "tcp6", "unix" or "unixpacket". No validation, caller must do that/*
func PrettyString ¶
func PrettyString(v interface{}) string
PrettyString print string as pretty json
func PrintAndExit ¶
func PrintAndExit(msg string)
func Unzip ¶
Unzip decompress a zip archived file copying all files and folders within the zip file to an output destination directory
func YamlPrinter ¶
YamlPrinter Default Json printer
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.