limitedmap

package
v1.3.5-beta1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadOnlyMap

type ReadOnlyMap struct {
	// contains filtered or unexported fields
}

func NewReadOnlyMap

func NewReadOnlyMap(a map[string]any) *ReadOnlyMap

func (*ReadOnlyMap) Append

func (sm *ReadOnlyMap) Append(l map[string]any) *ReadOnlyMap

func (*ReadOnlyMap) Existed

func (sm *ReadOnlyMap) Existed(p *ReadOnlyMap) bool

func (*ReadOnlyMap) Flat

func (sm *ReadOnlyMap) Flat() map[string]any

func (*ReadOnlyMap) ForEachKey

func (sm *ReadOnlyMap) ForEachKey(h func(m any, key string) error)

func (*ReadOnlyMap) GetRoot

func (sm *ReadOnlyMap) GetRoot() *ReadOnlyMap

func (*ReadOnlyMap) Load

func (sm *ReadOnlyMap) Load(key string) (value any, ok bool)

func (*ReadOnlyMap) SetPred

func (sm *ReadOnlyMap) SetPred(p *ReadOnlyMap) *ReadOnlyMap

func (*ReadOnlyMap) Store

func (sm *ReadOnlyMap) Store(key string, value any)
func (sm *ReadOnlyMap) Unlink(p *ReadOnlyMap)

type SafeMap

type SafeMap struct {
	// contains filtered or unexported fields
}

func NewSafeMap

func NewSafeMap(a map[string]any) *SafeMap

func (*SafeMap) Append

func (sm *SafeMap) Append(l map[string]any) *SafeMap

func (*SafeMap) Existed

func (sm *SafeMap) Existed(p *ReadOnlyMap) bool

func (*SafeMap) Flat

func (sm *SafeMap) Flat() map[string]any

func (*SafeMap) ForEachKey

func (sm *SafeMap) ForEachKey(h func(m any, key string) error)

func (*SafeMap) GetRoot

func (sm *SafeMap) GetRoot() *ReadOnlyMap

func (*SafeMap) Load

func (sm *SafeMap) Load(key string) (value any, ok bool)

func (*SafeMap) SetPred

func (sm *SafeMap) SetPred(p *ReadOnlyMap) *SafeMap

func (*SafeMap) Store

func (sm *SafeMap) Store(key string, value any)
func (sm *SafeMap) Unlink()

Jump to

Keyboard shortcuts

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