namemap

package
v0.0.0-alpha.16 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: ISC Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element[V any] struct {
	Kstr  string
	Kname enc.Name
	Val   V
	// contains filtered or unexported fields
}

func (*Element[V]) Next

func (e *Element[V]) Next() *Element[V]

func (*Element[V]) Prev

func (e *Element[V]) Prev() *Element[V]

type MetaV

type MetaV struct {
	Old bool
}

type NameMap

type NameMap[V any] struct {
	// contains filtered or unexported fields
}

func New

func New[V any](o Ordering) *NameMap[V]

func (*NameMap[V]) Back

func (m *NameMap[V]) Back() *Element[V]

func (*NameMap[V]) Copy

func (m *NameMap[V]) Copy() *NameMap[V]

func (*NameMap[V]) Front

func (m *NameMap[V]) Front() *Element[V]

func (*NameMap[V]) Get

func (m *NameMap[V]) Get(kstr string) (V, bool)

func (*NameMap[V]) GetElement

func (m *NameMap[V]) GetElement(kstr string) *Element[V]

func (*NameMap[V]) Len

func (m *NameMap[V]) Len() int

func (*NameMap[V]) Remove

func (m *NameMap[V]) Remove(kstr string) bool

func (*NameMap[V]) Set

func (m *NameMap[V]) Set(kstr string, kname enc.Name, val V, mv MetaV) bool

type Ordering

type Ordering int
const (
	Canonical          Ordering = 0
	LatestEntriesFirst Ordering = 1
)

Jump to

Keyboard shortcuts

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