hashmap

package
v0.0.0-...-7a468ce Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyMap

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

func New

func New[IK comparable, K, V any](internalKey func(K) IK) *KeyMap[IK, K, V]

func (*KeyMap[IK, K, V]) All

func (h *KeyMap[IK, K, V]) All() iter.Seq2[K, V]

func (*KeyMap[IK, K, V]) Clear

func (h *KeyMap[IK, K, V]) Clear()

func (*KeyMap[IK, K, V]) Delete

func (h *KeyMap[IK, K, V]) Delete(key K)

func (*KeyMap[IK, K, V]) Get

func (h *KeyMap[IK, K, V]) Get(key K) (V, bool)

func (*KeyMap[IK, K, V]) Keys

func (h *KeyMap[IK, K, V]) Keys() iter.Seq[K]

func (*KeyMap[IK, K, V]) Len

func (h *KeyMap[IK, K, V]) Len() int

func (*KeyMap[IK, K, V]) Set

func (h *KeyMap[IK, K, V]) Set(key K, value V)

func (*KeyMap[IK, K, V]) Value

func (h *KeyMap[IK, K, V]) Value(key K) V

func (*KeyMap[IK, K, V]) Values

func (h *KeyMap[IK, K, V]) Values() iter.Seq[V]

Jump to

Keyboard shortcuts

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