Versions in this module Expand all Collapse all v0 v0.3.0 Nov 21, 2023 Changes in this version + type AtomicBool int32 + func (b *AtomicBool) Get() bool + func (b *AtomicBool) Set(val bool) + type AtomicDuration int64 + func (d *AtomicDuration) Add(duration time.Duration) time.Duration + func (d *AtomicDuration) CompareAndSwap(oldval, newval time.Duration) (swapped bool) + func (d *AtomicDuration) Get() time.Duration + func (d *AtomicDuration) LoadInt64() int64 + func (d *AtomicDuration) Set(duration time.Duration) + func (d AtomicDuration) String() string + type AtomicInt32 int32 + func (i *AtomicInt32) Add(n int32) int32 + func (i *AtomicInt32) CompareAndSwap(oldval, newval int32) (swapped bool) + func (i *AtomicInt32) Get() int32 + func (i *AtomicInt32) Set(n int32) + type AtomicInt64 int64 + func (i *AtomicInt64) Add(n int64) int64 + func (i *AtomicInt64) CompareAndSwap(oldval, newval int64) (swapped bool) + func (i *AtomicInt64) Get() int64 + func (i *AtomicInt64) Set(n int64) + type AtomicString struct + func (s *AtomicString) CompareAndSwap(oldval, newval string) (swqpped bool) + func (s *AtomicString) Get() string + func (s *AtomicString) Set(str string) + type AtomicUint32 uint32 + func (i *AtomicUint32) Add(n uint32) uint32 + func (i *AtomicUint32) CompareAndSwap(oldval, newval uint32) (swapped bool) + func (i *AtomicUint32) Get() uint32 + func (i *AtomicUint32) Set(n uint32) + type AtomicUint64 uint64 + func (i *AtomicUint64) Add(n uint64) uint64 + func (i *AtomicUint64) CompareAndSwap(oldval, newval uint64) (swapped bool) + func (i *AtomicUint64) Get() uint64 + func (i *AtomicUint64) Set(n uint64) + type Int64Map struct + func NewInt64Map() *Int64Map + func (m *Int64Map) Add(key interface{}, delta int64) int64 + func (m *Int64Map) Del(key interface{}) + func (m *Int64Map) For(f func(k interface{}, v int64) bool) + func (m *Int64Map) Get(key interface{}) (int64, bool) + func (m *Int64Map) KeyVals() ([]interface{}, []int64) + func (m *Int64Map) Keys() []interface{} + func (m *Int64Map) Len() int + func (m *Int64Map) Set(key interface{}, val int64) + func (m *Int64Map) Vals() []int64 + type Map struct + func NewMap() *Map + func (m *Map) Del(key interface{}) + func (m *Map) For(f func(k interface{}, v interface{}) bool) + func (m *Map) Get(key interface{}) (interface{}, bool) + func (m *Map) GetTo(key interface{}, ptr interface{}) bool + func (m *Map) KeyVals() ([]interface{}, []interface{}) + func (m *Map) Keys() []interface{} + func (m *Map) Len() int + func (m *Map) Set(key interface{}, val interface{}) + func (m *Map) Vals() []interface{} + type Semaphore interface + Acquire func() + AcquireTimeout func(timeout time.Duration) bool + Release func() + func NewSemaphore(initialCount int) Semaphore