safemap

package
v0.0.0-...-dd34702 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 1 Imported by: 1

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 (s *SafeMap[K, V]) Delete(k K)

func (*SafeMap[K, V]) ForEach

func (s *SafeMap[K, V]) ForEach(f func(K, V))

func (*SafeMap[K, V]) Get

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

func (*SafeMap[K, V]) Len

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

func (*SafeMap[K, V]) Set

func (s *SafeMap[K, V]) Set(k K, v V)

Jump to

Keyboard shortcuts

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