Documentation ¶
Index ¶
- type KVPair
- type KeyElement
- type KeyIndices
- type OrderedMap
- func (om *OrderedMap) Delete(key interface{})
- func (om *OrderedMap) Get(key interface{}) (interface{}, bool)
- func (om *OrderedMap) Iter() <-chan *KVPair
- func (om *OrderedMap) IterFunc() func() (*KVPair, bool)
- func (om *OrderedMap) Len() int
- func (om OrderedMap) MarshalJSON() ([]byte, error)
- func (om OrderedMap) MarshalYAML() (interface{}, error)
- func (om *OrderedMap) Set(key interface{}, value interface{})
- func (om *OrderedMap) String() string
- func (om *OrderedMap) UnmarshalJSON(b []byte) error
- func (om *OrderedMap) UnmarshalYAML(unmarshal func(interface{}) error) error
- func (om *OrderedMap) UnsafeIter() <-chan *KVPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyElement ¶
type KeyIndices ¶
type KeyIndices []KeyElement
func (KeyIndices) Len ¶
func (a KeyIndices) Len() int
func (KeyIndices) Less ¶
func (a KeyIndices) Less(i, j int) bool
func (KeyIndices) Swap ¶
func (a KeyIndices) Swap(i, j int)
type OrderedMap ¶
type OrderedMap struct {
// contains filtered or unexported fields
}
func New ¶
func New() *OrderedMap
func NewWithArgs ¶
func NewWithArgs(args []*KVPair) *OrderedMap
func (*OrderedMap) Delete ¶
func (om *OrderedMap) Delete(key interface{})
func (*OrderedMap) Get ¶
func (om *OrderedMap) Get(key interface{}) (interface{}, bool)
func (*OrderedMap) Iter ¶
func (om *OrderedMap) Iter() <-chan *KVPair
func (*OrderedMap) IterFunc ¶
func (om *OrderedMap) IterFunc() func() (*KVPair, bool)
func (*OrderedMap) Len ¶
func (om *OrderedMap) Len() int
func (OrderedMap) MarshalJSON ¶
func (om OrderedMap) MarshalJSON() ([]byte, error)
func (OrderedMap) MarshalYAML ¶
func (om OrderedMap) MarshalYAML() (interface{}, error)
func (*OrderedMap) Set ¶
func (om *OrderedMap) Set(key interface{}, value interface{})
func (*OrderedMap) String ¶
func (om *OrderedMap) String() string
func (*OrderedMap) UnmarshalJSON ¶
func (om *OrderedMap) UnmarshalJSON(b []byte) error
func (*OrderedMap) UnmarshalYAML ¶
func (om *OrderedMap) UnmarshalYAML(unmarshal func(interface{}) error) error
func (*OrderedMap) UnsafeIter ¶
func (om *OrderedMap) UnsafeIter() <-chan *KVPair
Beware, Iterator leaks goroutines if we do not fully traverse the map. For most cases, `IterFunc()` should work as an iterator.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.