syncmap

package
v0.6.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SyncMap

type SyncMap[K comparable, V any] struct {
	// contains filtered or unexported fields
}

func New

func New[K comparable, V any]() SyncMap[K, V]

func (SyncMap[K, V]) Delete

func (sm SyncMap[K, V]) Delete(key K)

func (SyncMap[K, V]) Get

func (sm SyncMap[K, V]) Get(key K) (value V)

func (SyncMap[K, V]) Lookup

func (sm SyncMap[K, V]) Lookup(key K) (value V, ok bool)

func (SyncMap[K, V]) Range

func (sm SyncMap[K, V]) Range(f func(key K, value V) bool)

func (SyncMap[K, V]) Set

func (sm SyncMap[K, V]) Set(key K, value V)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL