Documentation ¶
Index ¶
- type SortMap
- type SyncedMap
- func (s *SyncedMap[K, V]) Delete(key K)
- func (s *SyncedMap[K, V]) Load(key K) (V, bool)
- func (s *SyncedMap[K, V]) LoadAndDelete(key K) (V, bool)
- func (s *SyncedMap[K, V]) LoadOrStore(key K, value V) (V, bool)
- func (s *SyncedMap[K, V]) Range(f func(k K, v V) bool)
- func (s *SyncedMap[K, V]) Store(key K, value V)
- func (s *SyncedMap[K, V]) Swap(key K, value V) (V, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SortMap ¶
type SortMap[M map[K]V, K comparable, V any] struct { // contains filtered or unexported fields }
func MakeSortMap ¶
func MakeSortMap[M map[K]V, K comparable, V any](m map[K]V) SortMap[M, K, V]
type SyncedMap ¶
type SyncedMap[K, V any] struct { // contains filtered or unexported fields }
func (*SyncedMap[K, V]) LoadAndDelete ¶
func (*SyncedMap[K, V]) LoadOrStore ¶
Click to show internal directories.
Click to hide internal directories.