concurrent

package
v0.30.2 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 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 MapOf

func MapOf[K comparable, V any](src map[K]V) *Map[K, V]

func (*Map[K, V]) Clear

func (cm *Map[K, V]) Clear()

func (*Map[K, V]) Clone

func (cm *Map[K, V]) Clone() map[K]V

func (*Map[K, V]) Delete

func (cm *Map[K, V]) Delete(k K)

func (*Map[K, V]) Get

func (cm *Map[K, V]) Get(k K) (V, bool)

func (*Map[K, V]) GetUnchecked

func (cm *Map[K, V]) GetUnchecked(k K) V

func (*Map[K, V]) Keys

func (cm *Map[K, V]) Keys() []K

func (*Map[K, V]) Len

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

func (*Map[K, V]) Set

func (cm *Map[K, V]) Set(k K, v V)

func (*Map[K, V]) UpdateValue

func (cm *Map[K, V]) UpdateValue(key K, transformer ValueTransformer[V])

func (*Map[K, V]) Values

func (cm *Map[K, V]) Values() []V

type ValueTransformer

type ValueTransformer[V any] func(V) V

Jump to

Keyboard shortcuts

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