syncmap

package
v0.93.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 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 SyncMap

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

func New

func New[A any]() *SyncMap[A]

func (*SyncMap[A]) Delete

func (s *SyncMap[A]) Delete(key string)

func (*SyncMap[A]) Get

func (s *SyncMap[A]) Get(key string) (A, bool)

func (*SyncMap[A]) Keys

func (s *SyncMap[A]) Keys() []string

func (*SyncMap[A]) MarshalJSON

func (s *SyncMap[A]) MarshalJSON() ([]byte, error)

func (*SyncMap[A]) Put

func (s *SyncMap[A]) Put(key string, value A)

func (*SyncMap[A]) UnmarshalJSON

func (s *SyncMap[A]) UnmarshalJSON(data []byte) error

func (*SyncMap[A]) Values

func (s *SyncMap[A]) Values() []A

Jump to

Keyboard shortcuts

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