Documentation
¶
Overview ¶
Package maps provides useful functions with maps of any type.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Keys ¶
func Keys[M ~map[K]V, K comparable, V any](m M) []K
Keys returns the keys of the map m. The keys will be in an indeterminate order.
func Merge ¶
func Merge[M ~map[K]V, K comparable, V any](l, r M) M
Merge returns the result of the merged maps. If a key/value pair exists in both maps, l and r, the key/value pair from r will take precedent.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.