Versions in this module Expand all Collapse all v1 v1.0.0 Jul 18, 2026 Changes in this version + type SyncMap struct + func New[K comparable, V any](defaultValue V) *SyncMap[K, V] + func (s *SyncMap[K, V]) Clear() + func (s *SyncMap[K, V]) CompareAndDelete(key K, value V) bool + func (s *SyncMap[K, V]) CompareAndSwap(key K, previous V, new V) bool + func (s *SyncMap[K, V]) Delete(key K) + func (s *SyncMap[K, V]) Load(key K) (V, bool) + func (s *SyncMap[K, V]) LoadAndDelete(key K) (V, bool) + func (s *SyncMap[K, V]) LoadOrStore(key K, value V) (V, bool) + func (s *SyncMap[K, V]) Range(f func(key K, value V) bool) + func (s *SyncMap[K, V]) Store(key K, value V) + func (s *SyncMap[K, V]) Swap(key K, value V) (V, bool)