Documentation ¶
Index ¶
- func Byte2Int(data []byte) int
- func Byte2IntLittleEndian(data []byte) int
- func ByteToFloat32(bytes []byte) float32
- func ByteToFloat64(bytes []byte) float64
- func Float32ToByte(float float32) []byte
- func Float64ToByte(float float64) []byte
- func FreePort(network string) (int, error)
- func GenerateRequestID() string
- func GetUUID1() (string, error)
- func GetUUID4() (string, error)
- func Int2Byte(data int) []byte
- func Int2ByteLittleEndian(data int) []byte
- func LocalIP() (ipAddr string)
- func LocalIPByTCP() string
- func LocalIPWithVal(defaultVal string) string
- func PublicIP() (string, error)
- func RandomInt(num int) int
- func Round(f float64, n int) float64
- func SubString(str string, begin, length int) string
- func SubStringFromEnd(str string, begin, end int) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LocalIPWithVal ¶
LocalIPWithVal if local IP is "", return defaultVal
func SubStringFromEnd ¶
SubStringFromEnd sub string include chinese character
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.