Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map[K comparable, V any] interface { Set(key K, value V) Has(key K) bool Get(key K) (V, bool) GetFirstKey() (K, bool) GetNextKey(key K) (K, bool) GetLastKey() (K, bool) GetPrevKey(key K) (K, bool) Remove(key K) Prepend(key K, value V) Append(key K, value V) AddBefore(key K, value V, beforeKey K) AddAfter(key K, value V, afterKey K) Keys() []K ReverseKeys() []K Values() []V ReverseValues() []V Iterate(fn func(key K, value V) bool) ReverseIterate(fn func(key K, value V) bool) Swap(key1 K, key2 K) Len() int ToMap() map[K]V }
Click to show internal directories.
Click to hide internal directories.