orderedmap

package
v0.0.0-...-22e1697 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: AGPL-3.0 Imports: 3 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[K comparable, V any] struct {
	Key   K
	Value V
}

type Map

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

Map is wrapper for map that keeps it's order when deserializing from JSON Warning: it's highly inneficient and should only be used for configuration file or similar use cases

func (*Map[K, V]) Elems

func (m *Map[K, V]) Elems() []Element[K, V]

func (*Map[K, V]) UnmarshalJSON

func (m *Map[K, V]) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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