Documentation ¶
Index ¶
- Constants
- func ByteToInt8(s []byte) []int8
- func GetLocalIP() string
- func Int8ToByte(s []int8) []byte
- func ParseLogNum(strVal string) (ret uint64)
- func ParseLogSizeMb(oriSize string) (ret uint64)
- func ParseStrBool(delay string) (ret bool)
- func ParseTimeOut(timeout int) (ret time.Duration)
- func UniqueInts(a []int) (b []int)
- func UpperBound(sortedArray []int, in int) (index int)
Constants ¶
View Source
const ( // B byte B uint64 = 1 // K kilobyte K uint64 = 1 << (10 * iota) // M megabyte M // G gigabyte G // T TeraByte T // P PetaByte P // E ExaByte E )
Variables ¶
This section is empty.
Functions ¶
func GetLocalIP ¶
func GetLocalIP() string
func ParseLogNum ¶
ParseLogNum : Parse uint64 from string
func ParseLogSizeMb ¶
ParseLogSizeMb : Translate x(B),xKB,xMB... to uint64 x(MB)
func ParseStrBool ¶
ParseStrBool : Parse bool from string
func ParseTimeOut ¶
ParseTimeOut : Parse time.Duration from int
func UniqueInts ¶
UniqueInts Return unique element list of list a
func UpperBound ¶
UpperBound Return the upperbound index for in
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.