smaps

package
v0.0.123 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: GPL-3.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 Smap

type Smap struct {
	Map     sync.Map
	Members int
}

func New

func New() *Smap

func NewFromMap

func NewFromMap[K comparable, V any](m map[K]V) *Smap

func (*Smap) Add

func (smap *Smap) Add(k any, v any)

func (*Smap) MarshalJSON

func (smap *Smap) MarshalJSON() ([]byte, error)

func (*Smap) Remove

func (smap *Smap) Remove(k any)

func (*Smap) UnmarshalJSON

func (smap *Smap) UnmarshalJSON(bytes []byte) error

Jump to

Keyboard shortcuts

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