util

package
v0.0.0-...-e0b6167 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 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 Map

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

func NewMap

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

func (*Map[K, V]) Delete

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

func (*Map[K, V]) Empty

func (tis *Map[K, V]) Empty() (empty bool)

func (*Map[K, V]) IsExist

func (tis *Map[K, V]) IsExist(key K) bool

func (*Map[K, V]) Load

func (tis *Map[K, V]) Load(key K) (V, bool)

func (*Map[K, V]) LoadOrStore

func (tis *Map[K, V]) LoadOrStore(key K, value V) (actual V, loaded bool)

func (*Map[K, V]) Range

func (tis *Map[K, V]) Range(f func(key K, value V) bool)

func (*Map[K, V]) Store

func (tis *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