Documentation
¶
Index ¶
- func Clone[K comparable, V any, M ~map[K]V](m M) M
- func Equal[K, V comparable, M1 ~map[K]V, M2 ~map[K]V](lhs M1, rhs M2) bool
- func EqualBy[K comparable, V1, V2 any, M1 ~map[K]V1, M2 ~map[K]V2](lhs M1, rhs M2, equal func(V1, V2) bool) bool
- func Keys[K comparable, V any, M ~map[K]V](m M) []K
- func Values[K comparable, V any, M ~map[K]V](m M) []V
- type MapEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clone ¶ added in v0.4.0
func Clone[K comparable, V any, M ~map[K]V](m M) M
func Equal ¶ added in v0.4.0
func Equal[K, V comparable, M1 ~map[K]V, M2 ~map[K]V](lhs M1, rhs M2) bool
func EqualBy ¶ added in v0.4.0
func EqualBy[K comparable, V1, V2 any, M1 ~map[K]V1, M2 ~map[K]V2](lhs M1, rhs M2, equal func(V1, V2) bool) bool
func Keys ¶ added in v0.4.0
func Keys[K comparable, V any, M ~map[K]V](m M) []K
func Values ¶ added in v0.4.0
func Values[K comparable, V any, M ~map[K]V](m M) []V
Types ¶
Click to show internal directories.
Click to hide internal directories.