om

package
v0.0.0-...-efc96e9 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.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 OrderedMap

type OrderedMap[T any] struct {
	// contains filtered or unexported fields
}

only supports string keys because JSON is the intended use case (and the JSON spec says only string keys are allowed)

func (OrderedMap[T]) Get

func (m OrderedMap[T]) Get(key string) T

func (OrderedMap[T]) Keys

func (m OrderedMap[T]) Keys() []string

func (OrderedMap[T]) MarshalJSON

func (m OrderedMap[T]) MarshalJSON() ([]byte, error)

func (*OrderedMap[T]) Set

func (m *OrderedMap[T]) Set(key string, val T)

func (*OrderedMap[T]) UnmarshalJSON

func (m *OrderedMap[T]) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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