orderedmap

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

README

orderedmap

ordered map in golang generics way, suprrot json.Unmarsal, json.Marshal

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderedMap

type OrderedMap[K comparable, V any] struct {
	// contains filtered or unexported fields
}

func NewOrderedMap

func NewOrderedMap[K comparable, V any]() *OrderedMap[K, V]

func (*OrderedMap[K, V]) Delete

func (me *OrderedMap[K, V]) Delete(k K)

func (*OrderedMap[K, V]) Get

func (me *OrderedMap[K, V]) Get(k K) (v V, ok bool)

func (*OrderedMap[K, V]) List

func (me *OrderedMap[K, V]) List() []kv[K, V]

func (*OrderedMap[K, V]) Map

func (me *OrderedMap[K, V]) Map() map[K]V

func (*OrderedMap[K, V]) MarshalJSON

func (me *OrderedMap[K, V]) MarshalJSON() ([]byte, error)

func (*OrderedMap[K, V]) Reset

func (me *OrderedMap[K, V]) Reset()

func (*OrderedMap[K, V]) Set

func (me *OrderedMap[K, V]) Set(k K, v V)

func (*OrderedMap[K, V]) UnmarshalJSON

func (me *OrderedMap[K, V]) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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