Documentation
¶
Index ¶
- type Map
- func (om *Map[K, V]) Delete(key K)
- func (om Map[K, V]) Get(key K) (V, bool)
- func (om Map[K, V]) Has(key K) bool
- func (om Map[K, V]) MarshalJSON() ([]byte, error)
- func (om Map[K, V]) MarshalYAML() (any, error)
- func (om *Map[K, V]) Set(key K, val V)
- func (om *Map[K, V]) UnmarshalJSON(data []byte) error
- func (om *Map[K, V]) UnmarshalYAML(node *yaml.Node) error
- type Pair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Map ¶
type Map[K comparable, V any] []Pair[K, V]
func New ¶
func New[K comparable, V any]() Map[K, V]
func (Map[K, V]) MarshalJSON ¶
MarshalJSON implements json.Marshaler interface to marshall a sorted list of key-value pairs into an object.
func (Map[K, V]) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler interface to marshall a sorted list of properties into an object.
func (*Map[K, V]) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler interface to unmarshal an object into a sorted list of key-value pairs.
func (*Map[K, V]) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler interface to unmarshal an object into a sorted list of properties.
Click to show internal directories.
Click to hide internal directories.