Versions in this module Expand all Collapse all v1 v1.0.0 Aug 7, 2024 Changes in this version + func DeepClone(v interface{}) interface + func DeepCopy(dst, src interface{}) + func ProtectRun(fn interface{}, args ...interface{}) + func RandGroup(p ...uint32) int + func RandInterval(b1, b2 int32) int32 + func RandIntervalN(b1, b2 int32, n uint32) []int32 + type Map struct + 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) 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{}) + type Semaphore chan struct + func MakeSemaphore(n int) Semaphore + func (s Semaphore) Acquire() + func (s Semaphore) Release()