Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IterateMapOrdered ¶
func IterateMapOrdered[K constraints.Ordered, V any](m map[K]V, forEach func(k K, v V) error) error
IterateMapOrdered iterates over the map with keys sorted in ascending order calling forEach for each key-value pair as long as forEach does not return an error.
func OrderedMapKeys ¶
func OrderedMapKeys[K constraints.Ordered, V any](m map[K]V) []K
OrderedMapKeys returns the map keys in ascending order.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.