ds

package
v0.9.2-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 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 SyncMap

type SyncMap[T any] struct {
	// contains filtered or unexported fields
}

func NewSyncMap

func NewSyncMap[T any]() *SyncMap[T]

func (*SyncMap[T]) Delete

func (sm *SyncMap[T]) Delete(key string)

func (*SyncMap[T]) Get

func (sm *SyncMap[T]) Get(key string) T

func (*SyncMap[T]) GetEx

func (sm *SyncMap[T]) GetEx(key string) (T, bool)

func (*SyncMap[T]) Set

func (sm *SyncMap[T]) Set(key string, value T)

Jump to

Keyboard shortcuts

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