Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderedKeysMap ¶
OrderedKeysMap provides a deterministic way to iterate the contents of a map. The problem with a regular iteration is that the order the elements are presented is not guaranteed. This can be detrimental when consistency is paramount. Any map that needs to be iterated deterministically, should use the Keys() function for the iteration loop and obtain the value using this key to index into the map.
func (*OrderedKeysMap[K, V]) Keys ¶
func (m *OrderedKeysMap[K, V]) Keys() []K
Click to show internal directories.
Click to hide internal directories.