Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Copy ¶
func Copy[K comparable, V any](a map[K]V) map[K]V
Copy creates a copy of the given map and returns it.
func Equal ¶
func Equal[K comparable, V comparable](a, b map[K]V) bool
Equal returns true if the two maps contain the exact same set of associations.
func Merge ¶
func Merge[K comparable, V any](dst, src map[K]V)
Merge merges map src into dst, giving the entries in src higher priority.
func ToSortedSlice ¶
func ToSortedSlice[K constraints.Ordered, V any](m map[K]V) []V
ToSortedSlice returns a slice of the values in the given map, sorted by that map's keys.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.