Documentation
¶
Overview ¶
Package maps provides utility functions for working with Go maps: Keys, KeysSorted, Values, and the Equal/NotEqual comparisons.
It is the free-function counterpart to the mapof package. Use these on maps you already have; use mapof when you want a map type that carries typed accessors and can be addressed by the schema package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equal ¶ added in v0.24.8
func Equal[T comparable](map1 map[string]T, map2 map[string]T) bool
Equal returns TRUE if the two maps are identical, having the same items in the same order, with no alterations.
func KeysSorted ¶ added in v0.22.0
KeysSorted returns all keys of a map, sorted
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.