Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map[K comparable, V any] interface { // Returns the number of elements in the map. Len() int // HasKey returns true if the map contains the given key. HasKey(key K) bool // Get returns the value associated with the given key. Get(key K) V // Put associates the given value with the given key. Put(key K, value V) // Del removes the given key and its associated value, it returns true if the key was found and deleted. Del(key K) bool // Keys returns the keys of the map. Keys() []K // Values returns the values of the map. Values() []V }
func New ¶
func New[K comparable, V any]() Map[K, V]
Click to show internal directories.
Click to hide internal directories.