Documentation ¶
Index ¶
- func Base64Decode(data string) []byte
- func Base64Encode(bytes []byte) string
- func BytesToInt32(bys []byte) int32
- func BytesToInt32Array(byteData []byte) []uint32
- func BytesToInt64(bys []byte) int64
- func BytesToUInt16(bys []byte) int
- func ConfusionArrayKey(arrayLen int) []int
- func DoZlibCompress(src []byte) []byte
- func DoZlibUnCompress(compressSrc []byte) []byte
- func GZipData(data []byte) string
- func GZipParse(baseData string) string
- func GenRandomNumber(start int, end int, count int) []int
- func GenSalt() string
- func GenVerifyCode() string
- func Int32ToBytes(n int32) []byte
- func Int64ToBytes(n int64) []byte
- func JsonMarshal(data interface{}) []byte
- func JsonUnMarshal(data []byte, v interface{}) error
- func LocalIp() string
- func Md5(content string) string
- func MilliSec() int64
- func Rand(min int32, max int32) int32
- func SameDay(stamp int64) bool
- func Sec() int64
- func Seed()
- func TimeZero() int64
- func UInt16ToBytes(n int) []byte
- func WeekZero() int64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
func BytesToInt32Array ¶
BytesToInt32Array bytes转为int32数组
func GenRandomNumber ¶
GenRandomNumber 生成count个start到end之间的随机数[start,end)
func GenVerifyCode ¶
func GenVerifyCode() string
func JsonMarshal ¶
func JsonMarshal(data interface{}) []byte
func JsonUnMarshal ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.