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
Click to show internal directories.
Click to hide internal directories.