Documentation
¶
Index ¶
- type KeyMap
- func (h *KeyMap[IK, K, V]) All() iter.Seq2[K, V]
- func (h *KeyMap[IK, K, V]) Clear()
- func (h *KeyMap[IK, K, V]) Delete(key K)
- func (h *KeyMap[IK, K, V]) Get(key K) (V, bool)
- func (h *KeyMap[IK, K, V]) Keys() iter.Seq[K]
- func (h *KeyMap[IK, K, V]) Len() int
- func (h *KeyMap[IK, K, V]) Set(key K, value V)
- func (h *KeyMap[IK, K, V]) Value(key K) V
- func (h *KeyMap[IK, K, V]) Values() iter.Seq[V]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyMap ¶
type KeyMap[IK comparable, K, V any] struct { // contains filtered or unexported fields }
func New ¶
func New[IK comparable, K, V any](internalKey func(K) IK) *KeyMap[IK, K, V]
Click to show internal directories.
Click to hide internal directories.