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] struct { // contains filtered or unexported fields }
Map is a hashmap. Like map[string]interface{}
func New ¶
func New[K comparable, V any](cap int) *Map[K, V]
New returns a new Map. Like map[string]interface{}
func (*Map[K, V]) Delete ¶
Delete deletes a value for a key. Returns the deleted value, or false when no value was assigned.
func (*Map[K, V]) Get ¶
Get returns a value for a key. Returns false when no value has been assign for key.
Click to show internal directories.
Click to hide internal directories.