util

package
v0.0.0-...-1b4a819 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 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 SyncMap

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

func NewSyncMap

func NewSyncMap[K comparable, V any]() SyncMap[K, V]

func (*SyncMap[K, V]) Delete

func (m *SyncMap[K, V]) Delete(k K)

func (*SyncMap[K, V]) Get

func (m *SyncMap[K, V]) Get(k K) V

func (*SyncMap[K, V]) GetCheck

func (m *SyncMap[K, V]) GetCheck(k K) (V, bool)

func (*SyncMap[K, V]) Keys

func (m *SyncMap[K, V]) Keys() []K

func (*SyncMap[K, V]) Set

func (m *SyncMap[K, V]) Set(k K, v V)

func (*SyncMap[K, V]) Values

func (m *SyncMap[K, V]) Values() []V

Jump to

Keyboard shortcuts

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