Documentation ¶ Index ¶ type Map func (m *Map[K, V]) Delete(key K) func (m *Map[K, V]) For(call func(K, V)) func (m *Map[K, V]) Get(key K) (val V) func (m *Map[K, V]) Len() int func (m *Map[K, V]) Read(key K) (val V, ok bool) func (m *Map[K, V]) Write(key K, val V) type Mutex func (m *Mutex) Read(process func()) func (m *Mutex) Write(process func()) 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 } func (*Map[K, V]) Delete ¶ func (m *Map[K, V]) Delete(key K) func (*Map[K, V]) For ¶ func (m *Map[K, V]) For(call func(K, V)) func (*Map[K, V]) Get ¶ func (m *Map[K, V]) Get(key K) (val V) func (*Map[K, V]) Len ¶ func (m *Map[K, V]) Len() int func (*Map[K, V]) Read ¶ func (m *Map[K, V]) Read(key K) (val V, ok bool) func (*Map[K, V]) Write ¶ func (m *Map[K, V]) Write(key K, val V) type Mutex ¶ type Mutex struct { sync.RWMutex } func (*Mutex) Read ¶ func (m *Mutex) Read(process func()) func (*Mutex) Write ¶ func (m *Mutex) Write(process func()) Source Files ¶ View all Source files map.gomutex.go Click to show internal directories. Click to hide internal directories.