Documentation ¶
Index ¶
- type Ordered
- func (om Ordered[K, V]) Add(key K, asserts V) (Ordered[K, V], error)
- func (om *Ordered[K, V]) ForEach(fn func(key K, val V) error) error
- func (om Ordered[K, V]) Get(key K) V
- func (om Ordered[K, V]) Len() int
- func (om Ordered[K, V]) MarshalJSON() ([]byte, error)
- func (om Ordered[K, V]) MustAdd(key K, asserts V) Ordered[K, V]
- func (om *Ordered[K, V]) UnmarshalJSON(data []byte) error
- func (om Ordered[K, V]) Unordered() map[K]V
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ordered ¶
type Ordered[K comparable, V any] struct { // contains filtered or unexported fields }
func (Ordered[K, V]) MarshalJSON ¶
func (*Ordered[K, V]) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.