Documentation
¶
Index ¶
- type OrderedMap
- func (m *OrderedMap[K, V]) Clear()
- func (m OrderedMap[K, V]) Clone() OrderedMap[K, V]
- func (m OrderedMap[K, V]) DeepCopyInto(out *OrderedMap[K, V])
- func (m *OrderedMap[K, V]) Delete(key K)
- func (m OrderedMap[K, V]) Equal(other OrderedMap[K, V]) bool
- func (m OrderedMap[K, V]) Get(key K) (V, bool)
- func (m OrderedMap[K, V]) Has(key K) bool
- func (m OrderedMap[K, V]) Keys() []K
- func (o OrderedMap[K, V]) MarshalJSON() ([]byte, error)
- func (pp OrderedMap[K, V]) MarshalYAML() (any, error)
- func (m *OrderedMap[K, V]) Set(key K, val V)
- func (o *OrderedMap[K, V]) UnmarshalJSON(data []byte) error
- func (pp *OrderedMap[K, V]) UnmarshalYAML(node *yaml.Node) error
- func (m OrderedMap[K, V]) Values() []V
- type Pair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderedMap ¶
type OrderedMap[K comparable, V any] []Pair[K, V]
func New ¶
func New[K comparable, V any]() OrderedMap[K, V]
func (*OrderedMap[K, V]) Clear ¶
func (m *OrderedMap[K, V]) Clear()
func (OrderedMap[K, V]) Clone ¶ added in v0.3.0
func (m OrderedMap[K, V]) Clone() OrderedMap[K, V]
func (OrderedMap[K, V]) DeepCopyInto ¶ added in v0.3.0
func (m OrderedMap[K, V]) DeepCopyInto(out *OrderedMap[K, V])
func (*OrderedMap[K, V]) Delete ¶
func (m *OrderedMap[K, V]) Delete(key K)
func (OrderedMap[K, V]) Equal ¶ added in v0.2.0
func (m OrderedMap[K, V]) Equal(other OrderedMap[K, V]) bool
func (OrderedMap[K, V]) Get ¶
func (m OrderedMap[K, V]) Get(key K) (V, bool)
func (OrderedMap[K, V]) Has ¶
func (m OrderedMap[K, V]) Has(key K) bool
func (OrderedMap[K, V]) Keys ¶
func (m OrderedMap[K, V]) Keys() []K
func (OrderedMap[K, V]) MarshalJSON ¶
func (o OrderedMap[K, V]) MarshalJSON() ([]byte, error)
MarshalJSON implements json.Marshaler interface to marshall a sorted list of key-value pairs into an object.
func (OrderedMap[K, V]) MarshalYAML ¶
func (pp OrderedMap[K, V]) MarshalYAML() (any, error)
MarshalYAML implements yaml.Marshaler interface to marshall a sorted list of properties into an object.
func (*OrderedMap[K, V]) Set ¶
func (m *OrderedMap[K, V]) Set(key K, val V)
func (*OrderedMap[K, V]) UnmarshalJSON ¶
func (o *OrderedMap[K, V]) UnmarshalJSON(data []byte) error
UnmarshalJSON implements json.Unmarshaler interface to unmarshal an object into a sorted list of key-value pairs.
func (*OrderedMap[K, V]) UnmarshalYAML ¶
func (pp *OrderedMap[K, V]) UnmarshalYAML(node *yaml.Node) error
UnmarshalYAML implements yaml.Unmarshaler interface to unmarshal an object into a sorted list of properties.
func (OrderedMap[K, V]) Values ¶
func (m OrderedMap[K, V]) Values() []V
Click to show internal directories.
Click to hide internal directories.