Documentation ¶
Index ¶
- func Has[M ~map[K]V, K comparable, V any](m M, key K) bool
- func Keys[M ~map[K]V, K comparable, V any](m M) []K
- func Map[S ~map[SK]SV, SK comparable, SV any, F ~func(SK, SV) (DK, DV), DK comparable, ...](src S, fn F) map[DK]DV
- func Merge[M1 ~map[K]V, M2 ~map[K]V, K comparable, V any](dst M1, src M2) M1
- func Values[M map[K]V, K comparable, V any](m M) []V
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Has ¶ added in v0.23.2
func Has[M ~map[K]V, K comparable, V any](m M, key K) bool
func Keys ¶
func Keys[M ~map[K]V, K comparable, V any](m M) []K
Keys return []key of map, random ordered.
func Map ¶ added in v0.27.6
func Map[S ~map[SK]SV, SK comparable, SV any, F ~func(SK, SV) (DK, DV), DK comparable, DV any](src S, fn F) map[DK]DV
func Merge ¶ added in v0.27.6
func Merge[M1 ~map[K]V, M2 ~map[K]V, K comparable, V any](dst M1, src M2) M1
func Values ¶
func Values[M map[K]V, K comparable, V any](m M) []V
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.