Documentation ¶
Index ¶
- func Base64Decode(data string) []byte
- func Base64Encode(bytes []byte) string
- func BuildCondition(where map[string]interface{}) (whereSql string, values []interface{}, err error)
- 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 DbIsNotFound(err error) bool
- func DoZlibCompress(src []byte) []byte
- func DoZlibUnCompress(compressSrc []byte) []byte
- func FormatPrivateKey(privateKey string) (pKey string)
- func FormatPublicKey(publicKey string) (pKey string)
- func GenRandomNumber(start int, end int, count int) []int
- 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 RealRand(min, max int64) int64
- func RedisIsNil(err error) bool
- func SameDay(stamp int64) bool
- func Sec() int64
- func Seed()
- func SerializeInt32ToStr(data []int32, sep string) string
- func SerializeInt64ToStr(data []int64, sep string) string
- func SerializeIntToStr(data []int, sep string) string
- func StringSliceToFloat64Slice(slice []string) []float64
- func StringSliceToInt64Slice(slice []string) []int64
- func StringSliceToUInt64Slice(slice []string) []uint64
- func StringToFloat64(num string) float64
- func StringToInt(num string) (int, error)
- func StringToInt32(num string) (int32, error)
- func StringToInt64(num string) (int64, error)
- func StringToUint64(num string) (uint64, error)
- func TimeZero() int64
- func UInt16ToBytes(n int) []byte
- func UnSerializeStrToInt(data string, sep string) []int
- func UnSerializeStrToInt32(data string, sep string) []int32
- func UnSerializeStrToInt64(data string, sep string) []int64
- func WeekZero() int64
- func Where(wheres map[string]map[string]interface{}) func(db *gorm.DB) *gorm.DB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64Decode ¶
func BuildCondition ¶
func BytesToInt32Array ¶
BytesToInt32Array bytes转为int32数组
func DbIsNotFound ¶
func GenRandomNumber ¶
GenRandomNumber 生成count个start到end之间的随机数[start,end)
func JsonMarshal ¶
func JsonMarshal(data interface{}) []byte
func JsonUnMarshal ¶
func RedisIsNil ¶
func SerializeInt32ToStr ¶
func SerializeInt64ToStr ¶
func SerializeIntToStr ¶
func StringSliceToInt64Slice ¶
func StringToFloat64 ¶
func StringToInt ¶
func StringToInt32 ¶
func StringToInt64 ¶
func StringToUint64 ¶
func UnSerializeStrToInt ¶
func UnSerializeStrToInt32 ¶
func UnSerializeStrToInt64 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.