orderedmap

package
v2.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2026 License: MIT Imports: 3 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSkipList

func NewSkipList(lesser func(l, r interface{}) bool) *skiplistOrderedMap

Types

type GoogleBTree

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

func NewGoogleBTree

func NewGoogleBTree(lesser func(l, r interface{}) bool) *GoogleBTree

func (*GoogleBTree) Get

func (me *GoogleBTree) Get(key interface{}) interface{}

func (*GoogleBTree) GetOk

func (me *GoogleBTree) GetOk(key interface{}) (interface{}, bool)

func (*GoogleBTree) Iter

func (me *GoogleBTree) Iter(f iter.Callback)

func (*GoogleBTree) Len

func (me *GoogleBTree) Len() int

func (*GoogleBTree) Set

func (me *GoogleBTree) Set(key interface{}, value interface{})

func (*GoogleBTree) Unset

func (me *GoogleBTree) Unset(key interface{})

type Iter

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

func (*Iter) Next

func (me *Iter) Next() bool

func (*Iter) Value

func (me *Iter) Value() interface{}

type OrderedMap

type OrderedMap interface {
	Get(key interface{}) interface{}
	GetOk(key interface{}) (interface{}, bool)
	iter.Iterable
	Set(key, value interface{})
	Unset(key interface{})
	Len() int
}

func New

func New(lesser func(l, r interface{}) bool) OrderedMap

Jump to

Keyboard shortcuts

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