Documentation ¶
Overview ¶
Package sync provides parametrized Map implementation
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 typed wrapper of sync.Map
func (*Map[K, V]) Delete ¶
func (m *Map[K, V]) Delete(keys ...K)
Delete removes value by their keys from the map
func (*Map[K, V]) DeleteOne ¶
func (m *Map[K, V]) DeleteOne(key K)
DeleteOne removes an value by the key from the map
func (*Map[K, V]) Get ¶
Get returns the value for a key. If ok==false, then the map does not contain the key.
Click to show internal directories.
Click to hide internal directories.