Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry[K comparable, V any] struct { Key K Value V }
type Map ¶
type Map[K comparable, V any] struct { // contains filtered or unexported fields }
Map is a generic data structure that maintains the order of keys.
func (*Map[K, V]) Delete ¶
func (om *Map[K, V]) Delete(key K)
Delete removes a key-value pair from the Map.
func (*Map[K, V]) Keys ¶
func (om *Map[K, V]) Keys() []K
Keys returns the keys in the order they were added.
Click to show internal directories.
Click to hide internal directories.