Versions in this module Expand all Collapse all v1 v1.2.4 Nov 7, 2026 Changes in this version + func BytesToString(b []byte) (s string) + func StringToBytes(s string) (b []byte) + type AtomicQueue struct + func NewAtomicQueue[T any]() *AtomicQueue[T] + func (q *AtomicQueue[T]) Len() int + func (q *AtomicQueue[T]) Pop() (val T, ok bool) + func (q *AtomicQueue[T]) Push(val T) + type Bitset struct + func NewBitset(size ...int) *Bitset + func (bs *Bitset) Append(elm ...bool) + func (bs *Bitset) At(idx int) bool + func (bs *Bitset) Items(yield func(bool) bool) + func (bs *Bitset) Len() int + func (bs *Bitset) Set(idx int, state bool) + type NumberConstraint interface + type RingBuffer struct + func NewRingBuffer[T any](cap int, initialValues ...T) *RingBuffer[T] + func (rb *RingBuffer[T]) At(i int) T + func (rb *RingBuffer[T]) BackingSlice() []T + func (rb *RingBuffer[T]) Cap() int + func (rb *RingBuffer[T]) Head() T + func (rb *RingBuffer[T]) Insert(vals ...T) + func (rb *RingBuffer[T]) Len() int + func (rb *RingBuffer[T]) Max() T + func (rb *RingBuffer[T]) Min() T + func (rb *RingBuffer[T]) Tail() T + type Semaphore struct + func NewSemaphore(limit int) *Semaphore + func (s *Semaphore) Acquire() + func (s *Semaphore) Release() + type ShardedMap struct + func NewShardedMap[K string, V any](shards int) (sm *ShardedMap[K, V]) + func (s *ShardedMap[K, V]) Len() int + func (s *ShardedMap[K, V]) Load(key K) (value V, ok bool) + func (s *ShardedMap[K, V]) Store(key K, value V)