Documentation
¶
Index ¶
- type Map
- func (m *Map[K, V]) Delete(key K)
- func (m *Map[K, V]) Load(key K) (v V, loaded bool)
- func (m *Map[K, V]) LoadOrStore(key K, value V) (V, bool)
- func (m *Map[K, V]) LoadOrStoreFn(key K, f func() V) (V, bool)
- func (m *Map[K, V]) Range(f func(key K, value V) (shouldContinue bool))
- func (m *Map[K, V]) Store(key K, value V)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map[K, V any] struct { // contains filtered or unexported fields }
func (*Map[K, V]) LoadOrStore ¶
func (*Map[K, V]) LoadOrStoreFn ¶ added in v1.5.23
Click to show internal directories.
Click to hide internal directories.