Documentation ¶
Overview ¶
Package orderedmap provides a map implementation where the order of keys is maintained (unlike the native Go map).
This flavor of map is crucial in keeping the output of ytt deterministic and stable.
Index ¶
- type Conversion
- type Map
- func (m *Map) Delete(key interface{}) bool
- func (m *Map) Get(key interface{}) (interface{}, bool)
- func (m *Map) Iterate(iterFunc func(k, v interface{}))
- func (m *Map) IterateErr(iterFunc func(k, v interface{}) error) error
- func (m *Map) Keys() (keys []interface{})
- func (m *Map) Len() int
- func (*Map) MarshalJSON() ([]byte, error)
- func (*Map) MarshalYAML() (interface{}, error)
- func (m *Map) Set(key, value interface{})
- type MapItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conversion ¶
type Conversion struct {
Object interface{}
}
func (Conversion) AsUnorderedStringMaps ¶
func (c Conversion) AsUnorderedStringMaps() interface{}
func (Conversion) FromUnorderedMaps ¶
func (c Conversion) FromUnorderedMaps() interface{}
type Map ¶
type Map struct {
// contains filtered or unexported fields
}
func NewMapWithItems ¶
func (*Map) IterateErr ¶
func (*Map) MarshalJSON ¶
func (*Map) MarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.