Documentation
¶
Index ¶
- type OrderedMap
- func (o *OrderedMap) Del(key string)
- func (o *OrderedMap) Get(key string) (interface{}, bool)
- func (o *OrderedMap) Keys() []string
- func (o *OrderedMap) Len() int
- func (m *OrderedMap) MarshalJSON() ([]byte, error)
- func (o *OrderedMap) Set(key string, value interface{})
- func (m *OrderedMap) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OrderedMap ¶
type OrderedMap struct {
// contains filtered or unexported fields
}
OrderedMap is a map where the keys keep the order that they're added. It also can be de/serialized from/to JSON
func (*OrderedMap) Del ¶
func (o *OrderedMap) Del(key string)
Del deletes the values associated with key.
func (*OrderedMap) Get ¶
func (o *OrderedMap) Get(key string) (interface{}, bool)
Get gets the value associated with the given key
func (*OrderedMap) MarshalJSON ¶
func (m *OrderedMap) MarshalJSON() ([]byte, error)
MarshalJSON implements the json.Marshaler interface.
func (*OrderedMap) Set ¶
func (o *OrderedMap) Set(key string, value interface{})
Set sets the associated value with given key
func (*OrderedMap) UnmarshalJSON ¶
func (m *OrderedMap) UnmarshalJSON(b []byte) error
UnmarshalJSON implements the json.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.