safemap

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: BSD-3-Clause Imports: 1 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[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any]() *Map[T]

func (*Map[T]) Clear

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

func (*Map[T]) Delete

func (m *Map[T]) Delete(key string)

func (*Map[T]) Get

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

func (*Map[T]) Has

func (m *Map[T]) Has(key string) bool

func (*Map[T]) Keys

func (m *Map[T]) Keys() []string

func (*Map[T]) Len

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

func (*Map[T]) Set

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

func (*Map[T]) Values

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

Jump to

Keyboard shortcuts

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