Documentation ¶
Index ¶
- func ForEach[M ~map[K]V, K comparable, V any](m M, handle func(K, V))
- func ForEachKey[M ~map[K]V, K comparable, V any](m M, handle func(v K))
- func ForEachValue[M ~map[K]V, K comparable, V any](m M, handle func(v V))
- func Keys[M ~map[K]V, K comparable, V any](m M) []K
- func KeysTransform[M ~map[K]V, K comparable, V, T any](m M, transform func(K) T) []T
- func Map[M ~map[K]V, K comparable, V, T any](m M, subValue func(K, V) T) []T
- func Merge[M ~map[K]V, K comparable, V any](maps ...M) M
- func MultiKeys[M ~map[K]V, K comparable, V any](maps ...M) []K
- func MultiValues[M ~map[K]V, K comparable, V any](maps ...M) []V
- func Values[M ~map[K]V, K comparable, V any](m M) []V
- func ValuesTransform[M ~map[K]V, K comparable, V, T any](m M, transform func(V) T) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForEach ¶
func ForEach[M ~map[K]V, K comparable, V any](m M, handle func(K, V))
func ForEachKey ¶
func ForEachKey[M ~map[K]V, K comparable, V any](m M, handle func(v K))
func ForEachValue ¶
func ForEachValue[M ~map[K]V, K comparable, V any](m M, handle func(v V))
func Keys ¶
func Keys[M ~map[K]V, K comparable, V any](m M) []K
func KeysTransform ¶ added in v0.0.21
func KeysTransform[M ~map[K]V, K comparable, V, T any](m M, transform func(K) T) []T
func Map ¶
func Map[M ~map[K]V, K comparable, V, T any](m M, subValue func(K, V) T) []T
func Merge ¶
func Merge[M ~map[K]V, K comparable, V any](maps ...M) M
func MultiKeys ¶
func MultiKeys[M ~map[K]V, K comparable, V any](maps ...M) []K
func MultiValues ¶
func MultiValues[M ~map[K]V, K comparable, V any](maps ...M) []V
func Values ¶
func Values[M ~map[K]V, K comparable, V any](m M) []V
func ValuesTransform ¶ added in v0.0.21
func ValuesTransform[M ~map[K]V, K comparable, V, T any](m M, transform func(V) T) []T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.