safemap

package
v1.0.38 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 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 added in v1.0.31

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

func (*Safemap[K, V]) Clear

func (s *Safemap[K, V]) Clear()

func (*Safemap[K, V]) Delete

func (s *Safemap[K, V]) Delete(key K)

func (*Safemap[K, V]) Each

func (s *Safemap[K, V]) Each(f func(key K, value V))

func (*Safemap[K, V]) EachWithBreak

func (s *Safemap[K, V]) EachWithBreak(f func(key K, value V) bool)

func (*Safemap[K, V]) Get

func (s *Safemap[K, V]) Get(key K) (V, bool)

func (*Safemap[K, V]) Has

func (s *Safemap[K, V]) Has(key K) bool

func (*Safemap[K, V]) Keys

func (s *Safemap[K, V]) Keys() []K

func (*Safemap[K, V]) Len

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

func (*Safemap[K, V]) Set

func (s *Safemap[K, V]) Set(key K, value V)

func (*Safemap[K, V]) Values

func (s *Safemap[K, V]) Values() []V

Jump to

Keyboard shortcuts

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