orderedmap

package
v1.7.17 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KVPair

type KVPair struct {
	Key   interface{}
	Value interface{}
}

func (*KVPair) Compare

func (k *KVPair) Compare(kv2 *KVPair) bool

func (*KVPair) String

func (k *KVPair) String() string

type OrderedMap

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

func NewOrderedMap

func NewOrderedMap() *OrderedMap

func NewOrderedMapWithArgs

func NewOrderedMapWithArgs(args []*KVPair) *OrderedMap

func (*OrderedMap) Delete

func (om *OrderedMap) Delete(key interface{})

func (*OrderedMap) Get

func (om *OrderedMap) Get(key interface{}) (interface{}, bool)

func (*OrderedMap) Iter

func (om *OrderedMap) Iter() <-chan *KVPair

func (*OrderedMap) IterFunc

func (om *OrderedMap) IterFunc() func() (*KVPair, bool)

func (*OrderedMap) Len

func (om *OrderedMap) Len() int

func (*OrderedMap) RevIterFunc

func (om *OrderedMap) RevIterFunc() func() (*KVPair, bool)

func (*OrderedMap) Set

func (om *OrderedMap) Set(key interface{}, value interface{})

func (*OrderedMap) String

func (om *OrderedMap) String() string

func (*OrderedMap) UnsafeIter

func (om *OrderedMap) UnsafeIter() <-chan *KVPair

Jump to

Keyboard shortcuts

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