Documentation
¶
Index ¶
- type Map
- func (m *Map[K, V]) Clear()
- func (m *Map[K, V]) ForEach(f func(key K, value V))
- func (m *Map[K, V]) Get(k K) (V, bool)
- func (m *Map[K, V]) GetOrZero(k K) V
- func (m *Map[K, V]) Has(k K) bool
- func (m *Map[K, V]) Keys() []K
- func (m *Map[K, V]) Len() int
- func (m *Map[K, V]) Put(k K, v V)
- func (m *Map[K, V]) Remove(k K)
- func (m *Map[K, V]) Values() []V
- type MultiMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map[K comparable, V any] struct { // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.