safemap

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SafeMap

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

func New

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

func (*SafeMap[K, V]) Delete

func (sm *SafeMap[K, V]) Delete(key K)

func (*SafeMap[K, V]) Flush

func (sm *SafeMap[K, V]) Flush()

func (*SafeMap[K, V]) Get

func (sm *SafeMap[K, V]) Get(key K) (V, bool)

func (*SafeMap[K, V]) Len

func (sm *SafeMap[K, V]) Len() int

func (*SafeMap[K, V]) Set

func (sm *SafeMap[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