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 { Store(K, V) Clear() Delete(K) CompareAndDelete(key K, old V) (deleted bool) Swap(k K, new V) (previous V, loaded bool) CompareAndSwap(key K, old, new V) (swapped bool) Load(K) (V, bool) LoadAndDelete(K) (v V, loaded bool) LoadOrStore(K, V) (actual V, loaded bool) Range(func(K, V) bool) Len() int Keys() []K Values() []V }
func AsSmap ¶
func AsSmap[K comparable, V any, M ~map[K]V](m M) Map[K, V]
func AsXmap ¶
func AsXmap[K comparable, V any, M ~map[K]V](m M) Map[K, V]
func NewSmap ¶
func NewSmap[K comparable, V any]() Map[K, V]
func NewXmap ¶
func NewXmap[K comparable, V any]() Map[K, V]
type Set ¶
type Set[K comparable] struct { // contains filtered or unexported fields }
func NewSet ¶
func NewSet[K comparable]() Set[K]
Click to show internal directories.
Click to hide internal directories.