Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WithOrder ¶
type WithOrder[T any] struct { // contains filtered or unexported fields }
WithOrder is like map, but also retains information about the order the keys of the object where in when it was unmarshalled from JSON.
func (*WithOrder[T]) Get ¶
Get returns the value associated with the given key, and a boolean indicating whether the key was present.
func (*WithOrder[T]) OrderedKeys ¶
Keys returns the keys of the map in the order they were unmarshalled from JSON.
func (*WithOrder[T]) OrderedValues ¶
func (b *WithOrder[T]) OrderedValues() []*T
OrderedValues returns the values of the map in the order they were unmarshalled from JSON.
func (*WithOrder[T]) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.