internal

package
v0.0.0-...-2f6c813 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Map

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

func NewMap

func NewMap[K comparable, V any]() *Map[K, V]

func (*Map[K, V]) Delete

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

func (*Map[K, V]) Len

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

func (*Map[K, V]) Load

func (sm *Map[K, V]) Load(key K) (value V, ok bool)

func (*Map[K, V]) Map

func (sm *Map[K, V]) Map() iter.Seq2[K, V]

func (*Map[K, V]) MustLoad

func (sm *Map[K, V]) MustLoad(key K) V

func (*Map[K, V]) Store

func (sm *Map[K, V]) Store(key K, value V)

Jump to

Keyboard shortcuts

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