Documentation
¶
Index ¶
- type Map
- func (om *Map[K, V]) All() iter.Seq2[K, V]
- func (om *Map[K, V]) Clear()
- func (om *Map[K, V]) Delete(k K) V
- func (om *Map[K, V]) DeleteOk(k K) (V, bool)
- func (om *Map[K, V]) Get(k K) V
- func (om *Map[K, V]) GetOk(k K) (V, bool)
- func (om *Map[K, V]) Keys() iter.Seq[K]
- func (om *Map[K, V]) Len() int
- func (om *Map[K, V]) Pairs() []Pair[K, V]
- func (om *Map[K, V]) Push(k K, v V)
- func (om *Map[K, V]) Set(k K, v V)
- func (om *Map[K, V]) String() string
- func (om *Map[K, V]) Values() iter.Seq[V]
- type Pair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶ added in v1.1.0
type Map[K comparable, V any] struct { // contains filtered or unexported fields }
func New ¶
func New[K comparable, V any]() *Map[K, V]
type Pair ¶
type Pair[K comparable, V any] struct { Key K Value V }
Click to show internal directories.
Click to hide internal directories.