syncmap

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2023 License: MIT 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 {
	sync.RWMutex
	// contains filtered or unexported fields
}

func New

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

func (*SyncMap[K, V]) Get

func (s *SyncMap[K, V]) Get(k K) (V, bool)

func (*SyncMap[K, V]) Put

func (s *SyncMap[K, V]) Put(k K, v V)

func (*SyncMap[K, V]) Remove

func (s *SyncMap[K, V]) Remove(k K)

Jump to

Keyboard shortcuts

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