util

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 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 SyncedMap

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

func NewSyncedMap

func NewSyncedMap[K comparable, V any]() *SyncedMap[K, V]

func (*SyncedMap[K, V]) Delete

func (m *SyncedMap[K, V]) Delete(key K)

func (*SyncedMap[K, V]) Get

func (m *SyncedMap[K, V]) Get(key K) (V, bool)

func (*SyncedMap[K, V]) Set

func (m *SyncedMap[K, V]) Set(key K, value V)

func (*SyncedMap[K, V]) Size

func (m *SyncedMap[K, V]) Size() int

Jump to

Keyboard shortcuts

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