Documentation ¶
Index ¶
- func CheckErr_LollipopGO(err error)
- func GetNowUnixNano_LollipopGo() int64
- func GetNowUnix_LollipopGo() int64
- func GetNowtimeMD5_LollipopGO() string
- func GetTime_LollipopGO() string
- func Int2str_LollipopGo(data int) string
- func MD5_LollipopGO(data string) string
- func RandGroup_LollipopGo(p ...uint32) int
- func RandIntervalN_LollipopGo(b1, b2 int32, n uint32) []int32
- func RandInterval_LollipopGo(b1, b2 int32) int32
- func Randnum_LollipopGO(max int) int
- func Sort_LollipopGo(data map[string]*conf.DSQ_Exp, iExp int) int
- func Str2int_LollipopGo(data string) int
- func UTCTime_LollipopGO() string
- type Map
- func (m *Map) AddCount(key interface{}, value interface{})
- func (m *Map) Del(key interface{})
- func (m *Map) Get(key interface{}) interface{}
- func (m *Map) Len() int
- func (m *Map) LockRange(f func(interface{}, interface{}))
- func (m *Map) LollipopGo_RLockRange(data map[string]interface{}) map[string]interface{}
- func (m *Map) RLockRange(f func(interface{}, interface{}))
- func (m *Map) Set(key interface{}, value interface{})
- func (m *Map) TestAndSet(key interface{}, value interface{}) interface{}
- func (m *Map) UnsafeDel(key interface{})
- func (m *Map) UnsafeGet(key interface{}) interface{}
- func (m *Map) UnsafeLen() int
- func (m *Map) UnsafeRange(f func(interface{}, interface{}))
- func (m *Map) UnsafeSet(key interface{}, value interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckErr_LollipopGO ¶
func CheckErr_LollipopGO(err error)
func GetNowUnixNano_LollipopGo ¶
func GetNowUnixNano_LollipopGo() int64
单位纳秒,打印结果:1491888244752784461
func GetNowtimeMD5_LollipopGO ¶
func GetNowtimeMD5_LollipopGO() string
func GetTime_LollipopGO ¶
func GetTime_LollipopGO() string
func Int2str_LollipopGo ¶
func RandGroup_LollipopGo ¶
func RandInterval_LollipopGo ¶
func Randnum_LollipopGO ¶
------------------------------------------------------------------------------ 返回[0,max)的随机整数
func Sort_LollipopGo ¶
------------------------------------------------------------------------------ 例子已经写在简书:https://www.jianshu.com/p/e30a9db07da0 详见《彬哥Go语言笔记》
func Str2int_LollipopGo ¶
Types ¶
type Map ¶
func (*Map) LollipopGo_RLockRange ¶
并发安全读取
func (*Map) TestAndSet ¶
func (m *Map) TestAndSet(key interface{}, value interface{}) interface{}
func (*Map) UnsafeRange ¶
func (m *Map) UnsafeRange(f func(interface{}, interface{}))
Click to show internal directories.
Click to hide internal directories.