omap

package
v0.0.29 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: Apache-2.0 Imports: 0 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, T any] struct {
	// contains filtered or unexported fields
}

func New

func New[K comparable, T any]() *Map[K, T]

func (*Map[K, T]) Clear

func (m *Map[K, T]) Clear()

func (*Map[K, T]) Delete

func (m *Map[K, T]) Delete(key K)

func (*Map[K, T]) ForEach

func (m *Map[K, T]) ForEach(fn func(key K, value T))

func (*Map[K, T]) Get

func (m *Map[K, T]) Get(key K) (T, bool)

func (*Map[K, T]) Keys

func (m *Map[K, T]) Keys() []K

func (*Map[K, T]) Len

func (m *Map[K, T]) Len() int

func (*Map[K, T]) Set

func (m *Map[K, T]) Set(key K, value T)

func (*Map[K, T]) Values

func (m *Map[K, T]) Values() []T

Jump to

Keyboard shortcuts

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