Versions in this module Expand all Collapse all v0 v0.0.2 Oct 10, 2020 Changes in this version + const MicroPerDay + const MicroPerHour + const MicroPerMilli + const MicroPerMinute + const MicroPerSecond + const MicroPerWeek + const MilliPerDay + const MilliPerHour + const MilliPerMinute + const MilliPerSecond + const MilliPerWeek + const NanoPerDay + const NanoPerHour + const NanoPerMicro + const NanoPerMilli + const NanoPerMinute + const NanoPerSecond + const NanoPerWeek + const SecondsPerDay + const SecondsPerHour + const SecondsPerMinute + const SecondsPerWeek + var GLeakyBuf = NewLeakyBuf(maxNBuf, leakyBufSize) + func AfterSeconds(secs int) time.Time + func BPutUint16(b []byte, v uint16) + func BPutUint32(b []byte, v uint32) + func BPutUint64(b []byte, v uint64) + func BUint16(b []byte) uint16 + func BUint32(b []byte) uint32 + func BUint64(b []byte) uint64 + func BytesToInt32(b []byte) int + func CopyMap(dest, src map[string]interface{}) + func CutMsgWithTemplate(tpl interface{}, msg interface{}) interface + func FileExists(path string) bool + func GetRandomBytes(n int, alphabets ...byte) []byte + func GetRandomString(n int, alphabets ...byte) string + func Int32Distinct(intList []int32) []int32 + func Int32ListEqual(a []int32, b []int32) bool + func Int32ListRemove(intList []int32, element int) []int32 + func Int64ToString(num int64) string + func IntTo4Bytes(n int) []byte + func IntToString(num int) string + func IsDir(path string) bool + func IsFile(path string) bool + func IsStringInArray(str string, array []string) bool + func IsStringWildCardMatchArray(s string, array []string) bool + func LPutUint16(b []byte, v uint16) + func LPutUint32(b []byte, v uint32) + func LPutUint64(b []byte, v uint64) + func LUint16(b []byte) uint16 + func LUint32(b []byte) uint32 + func LUint64(b []byte) uint64 + func MakeTimeFromMicroSeconds(usec int64) time.Time + func MakeTimeFromMilliSeconds(msec int64) time.Time + func MakeTimeFromNanoSeconds(nsec int64) time.Time + func MakeTimeFromSeconds(sec int64) time.Time + func Max(a, b int) int + func Min(a, b int) int + func NewRandString(alphabets string, length int) string + func ObjectToJSONBuffer(obj interface{}) (res []byte) + func PackUint32BE(num uint32) []byte + func PackUint32LE(num uint32) []byte + func PathExists(path string) (bool, error) + func SelfDir() string + func SelfPath() string + func StringToFloat32(str string) float32 + func StringToFloat64(str string) float64 + func StringToInt(str string) int + func StringToInt64(str string) int64 + func StringToUint32(str string) uint32 + func StringToUint64(str string) uint64 + func TimeNowMicroSecond() int64 + func TimeNowMilliSecond() int64 + func TimeNowNonoSecond() int64 + func TimeNowSecond() int64 + func ToInt(value interface{}) (num int, err error) + func ToInt64(value interface{}) (num int64, err error) + func Uint64ToString(num uint64) string + func UnpackUint32BE(data []byte) uint32 + func UnpackUint32LE(data []byte) uint32 + func WildCardDeepMatchRune(pattern, name []rune, plus bool) bool + func WildCardMatch(pattern string, name string) bool + type LeakyBuf struct + func NewLeakyBuf(n, bufSize int) *LeakyBuf + func (lb *LeakyBuf) Get() (b []byte) + func (lb *LeakyBuf) Put(b []byte)