syncmap
package v2.23.1
Go to latest Published: Jun 10, 2025 License:AGPL-3.0
Opens a new window with list of versions in this module.
Latest LatestThis package is not in the latest version of its module.
Opens a new window with license information.
Imports:1 Opens a new window with list of imports.
Imported by:0 Opens a new window with list of known importers.
Details
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
- type Map
- func (m *Map[K, V]) CompareAndDelete(key K, old V) (deleted bool)
- func (m *Map[K, V]) CompareAndSwap(key K, old V, newVal V) bool
- func (m *Map[K, V]) Delete(key K)
- func (m *Map[K, V]) Load(key K) (value V, ok bool)
- func (m *Map[K, V]) LoadAndDelete(key K) (actual V, loaded bool)
- func (m *Map[K, V]) LoadOrStore(key K, value V) (actual V, loaded bool)
- func (m *Map[K, V]) Range(f func(key K, value V) bool)
- func (m *Map[K, V]) Store(k K, v V)
- func (m *Map[K, V]) Swap(key K, value V) (previous any, loaded bool)
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeMap¶
type Map[K, Vany] struct {// contains filtered or unexported fields}
Map is a type safe sync.Map
func (*Map[K, V])CompareAndDelete¶
func (*Map[K, V])CompareAndSwap¶
func (*Map[K, V])LoadAndDelete¶
func (*Map[K, V])LoadOrStore¶
Click to show internal directories.
Click to hide internal directories.