Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AtomicInt ¶
type AtomicInt[T int32 | uint32 | int64 | uint64] struct { // contains filtered or unexported fields }
AtomicInt 原子化操作的
func (*AtomicInt[T]) DecreaseOne ¶
func (a *AtomicInt[T]) DecreaseOne()
func (*AtomicInt[T]) IncreaseOne ¶
func (a *AtomicInt[T]) IncreaseOne()
type GenericsSyncMap ¶
func NewGenericsSyncMap ¶
func NewGenericsSyncMap[K comparable, V interface{}]() *GenericsSyncMap[K, V]
func (*GenericsSyncMap[K, V]) Delete ¶
func (g *GenericsSyncMap[K, V]) Delete(key K)
func (*GenericsSyncMap[K, V]) Get ¶
func (g *GenericsSyncMap[K, V]) Get(key K) (V, bool)
func (*GenericsSyncMap[K, V]) Len ¶
func (g *GenericsSyncMap[K, V]) Len() (len int)
func (*GenericsSyncMap[K, V]) Put ¶
func (g *GenericsSyncMap[K, V]) Put(key K, value V)
func (*GenericsSyncMap[K, V]) Range ¶
func (g *GenericsSyncMap[K, V]) Range(f func(key K, value V))
Click to show internal directories.
Click to hide internal directories.