Versions in this module Expand all Collapse all v1 v1.22.38 Sep 25, 2022 v1.22.12 Mar 28, 2022 Changes in this version + const EmptyStr + const HttpHeaderAgentToken + const HttpHeaderContentType + const HttpMimeJson + const LineBreak + const OSLinux + const OSMac + const OSWin + const UnixNewLine + const UnixPathSeparator + const WinNewLine + const WinPathSeparator + const ZkNodeTypeEphemeral + const ZkNodeTypePersistent + var HomeDir = "" + func ByteToMB(bytes uint64) uint64 + func BytesTrimRight(src []byte, trim []byte) []byte + func CopyDir(src string, dst string) (err error) + func CopyFile(src, dst string) (errOut error) + func EnableDebugLog() + func FailOnError(err error, msg string) + func GetEnv(env, def string) string + func GetType(v interface{}) reflect.Type + func GetValue(v interface{}) reflect.Value + func HasError(err error) bool + func HasString(s string) bool + func IndexOfFirstSpace(str string) int + func IsByteStartWith(src []byte, start []byte) bool + func IsEmptyString(s string) bool + func IsFileExists(path string) bool + func IsFileExistsAndReturnFileInfo(path string) (os.FileInfo, bool) + func IsLinux() bool + func IsMac() bool + func IsPointerType(v interface{}) bool + func IsWindows() bool + func LogDebug(format string, a ...interface{}) + func LogIfError(err error) bool + func LogInfo(format string, a ...interface{}) + func LogInit() + func LogWarn(format string, a ...interface{}) + func OS() string + func PanicIfErr(err error) + func PanicIfNil(obj interface{}, msg string) + func ParseString(src string) string + func ParseStringWithSource(src string, source map[string]string) string + func PointerBoolean(val bool) *bool + func RecoverPanic(handler func(e error)) + func TrimLeftString(src, trim string) string + func UTF16BytesToString(b []byte, o binary.ByteOrder) string + func Unzip(src string, dest string) (out error) + func Wait(group *sync.WaitGroup, timeout time.Duration) bool + func Zip(src, dest, separator string) (out error) + type ZkCallbacks struct + OnDisconnected func() + type ZkClient struct + Callbacks *ZkCallbacks + func NewZkClient() *ZkClient + func (client *ZkClient) Close() + func (client *ZkClient) Connect(host string) error + func (client *ZkClient) Create(path string, nodeType int32, data string) (string, error) + func (client *ZkClient) Data(path string) (string, error) + func (client *ZkClient) Delete(path string) error + func (client *ZkClient) Exist(path string) (bool, error)