Documentation ¶
Index ¶
- type ByPair
- type OrderedMap
- func (o *OrderedMap) Clear()
- func (o *OrderedMap) Delete(key string)
- func (o *OrderedMap) Get(key string) (interface{}, bool)
- func (o *OrderedMap) Keys() []string
- func (o *OrderedMap) LoadOrStore(key string, value interface{}) (interface{}, bool)
- func (o *OrderedMap) MarshalJSON() ([]byte, error)
- func (o *OrderedMap) Set(key string, value interface{})
- func (o *OrderedMap) SetEscapeHTML(on bool)
- func (o *OrderedMap) Sort(lessFunc func(a *Pair, b *Pair) bool)
- func (o *OrderedMap) SortKeys(sortFunc func(keys []string))
- func (o *OrderedMap) UnmarshalJSON(b []byte) error
- type Pair
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
}
func New ¶
func New() *OrderedMap
func (*OrderedMap) Clear ¶
func (o *OrderedMap) Clear()
func (*OrderedMap) Delete ¶
func (o *OrderedMap) Delete(key string)
func (*OrderedMap) Get ¶
func (o *OrderedMap) Get(key string) (interface{}, bool)
func (*OrderedMap) Keys ¶
func (o *OrderedMap) Keys() []string
func (*OrderedMap) LoadOrStore ¶
func (o *OrderedMap) LoadOrStore(key string, value interface{}) (interface{}, bool)
func (*OrderedMap) MarshalJSON ¶
func (o *OrderedMap) MarshalJSON() ([]byte, error)
func (*OrderedMap) Set ¶
func (o *OrderedMap) Set(key string, value interface{})
func (*OrderedMap) SetEscapeHTML ¶
func (o *OrderedMap) SetEscapeHTML(on bool)
func (*OrderedMap) Sort ¶
func (o *OrderedMap) Sort(lessFunc func(a *Pair, b *Pair) bool)
Sort Sort the map using your sort func
func (*OrderedMap) SortKeys ¶
func (o *OrderedMap) SortKeys(sortFunc func(keys []string))
SortKeys Sort the map keys using your sort func
func (*OrderedMap) UnmarshalJSON ¶
func (o *OrderedMap) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.