Documentation ¶
Index ¶
- type KeyType
- type KeyTypeValueTypeOrderedMap
- func (om *KeyTypeValueTypeOrderedMap) Clear()
- func (om *KeyTypeValueTypeOrderedMap) Delete(key KeyType) (oldValue ValueType, present bool)
- func (om *KeyTypeValueTypeOrderedMap) Foreach(f func(key KeyType, value ValueType))
- func (om *KeyTypeValueTypeOrderedMap) Get(key KeyType) (result ValueType, present bool)
- func (om *KeyTypeValueTypeOrderedMap) GetPair(key KeyType) *KeyTypeValueTypePair
- func (om *KeyTypeValueTypeOrderedMap) Len() int
- func (om *KeyTypeValueTypeOrderedMap) Newest() *KeyTypeValueTypePair
- func (om *KeyTypeValueTypeOrderedMap) Oldest() *KeyTypeValueTypePair
- func (om *KeyTypeValueTypeOrderedMap) Set(key KeyType, value ValueType) (oldValue ValueType, present bool)
- type KeyTypeValueTypePair
- type StringInterfaceOrderedMap
- func (om *StringInterfaceOrderedMap) Clear()
- func (om *StringInterfaceOrderedMap) Delete(key string) (oldValue interface{}, present bool)
- func (om *StringInterfaceOrderedMap) Foreach(f func(key string, value interface{}))
- func (om *StringInterfaceOrderedMap) Get(key string) (result interface{}, present bool)
- func (om *StringInterfaceOrderedMap) GetPair(key string) *StringInterfacePair
- func (om *StringInterfaceOrderedMap) Len() int
- func (om *StringInterfaceOrderedMap) Newest() *StringInterfacePair
- func (om *StringInterfaceOrderedMap) Oldest() *StringInterfacePair
- func (om *StringInterfaceOrderedMap) Set(key string, value interface{}) (oldValue interface{}, present bool)
- type StringInterfacePair
- type StringStringOrderedMap
- func (om *StringStringOrderedMap) Clear()
- func (om *StringStringOrderedMap) Delete(key string) (oldValue string, present bool)
- func (om *StringStringOrderedMap) Foreach(f func(key string, value string))
- func (om *StringStringOrderedMap) Get(key string) (result string, present bool)
- func (om *StringStringOrderedMap) GetPair(key string) *StringStringPair
- func (om *StringStringOrderedMap) Len() int
- func (om *StringStringOrderedMap) Newest() *StringStringPair
- func (om *StringStringOrderedMap) Oldest() *StringStringPair
- func (om *StringStringOrderedMap) Set(key string, value string) (oldValue string, present bool)
- type StringStringPair
- type StringStructOrderedMap
- func (om *StringStructOrderedMap) Clear()
- func (om *StringStructOrderedMap) Delete(key string) (oldValue struct{}, present bool)
- func (om *StringStructOrderedMap) Foreach(f func(key string, value struct{}))
- func (om *StringStructOrderedMap) Get(key string) (result struct{}, present bool)
- func (om *StringStructOrderedMap) GetPair(key string) *StringStructPair
- func (om *StringStructOrderedMap) Len() int
- func (om *StringStructOrderedMap) Newest() *StringStructPair
- func (om *StringStructOrderedMap) Oldest() *StringStructPair
- func (om *StringStructOrderedMap) Set(key string, value struct{}) (oldValue struct{}, present bool)
- type StringStructPair
- type ValueType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeyTypeValueTypeOrderedMap ¶
type KeyTypeValueTypeOrderedMap struct {
// contains filtered or unexported fields
}
KeyTypeValueTypeOrderedMap
func NewKeyTypeValueTypeOrderedMap ¶
func NewKeyTypeValueTypeOrderedMap() *KeyTypeValueTypeOrderedMap
NewKeyTypeValueTypeOrderedMap creates a new KeyTypeValueTypeOrderedMap.
func (*KeyTypeValueTypeOrderedMap) Clear ¶ added in v0.14.1
func (om *KeyTypeValueTypeOrderedMap) Clear()
Clear removes all entries from this ordered map.
func (*KeyTypeValueTypeOrderedMap) Delete ¶
func (om *KeyTypeValueTypeOrderedMap) Delete(key KeyType) (oldValue ValueType, present bool)
Delete removes the key-value pair, and returns what `Get` would have returned on that key prior to the call to `Delete`.
func (*KeyTypeValueTypeOrderedMap) Foreach ¶
func (om *KeyTypeValueTypeOrderedMap) Foreach(f func(key KeyType, value ValueType))
Foreach iterates over the entries of the map in the insertion order, and invokes the provided function for each key-value pair.
func (*KeyTypeValueTypeOrderedMap) Get ¶
func (om *KeyTypeValueTypeOrderedMap) Get(key KeyType) (result ValueType, present bool)
Get returns the value associated with the given key. Returns nil if not found. The second return value indicates if the key is present in the map.
func (*KeyTypeValueTypeOrderedMap) GetPair ¶
func (om *KeyTypeValueTypeOrderedMap) GetPair(key KeyType) *KeyTypeValueTypePair
GetPair returns the key-value pair associated with the given key. Returns nil if not found.
func (*KeyTypeValueTypeOrderedMap) Len ¶
func (om *KeyTypeValueTypeOrderedMap) Len() int
Len returns the length of the ordered map.
func (*KeyTypeValueTypeOrderedMap) Newest ¶
func (om *KeyTypeValueTypeOrderedMap) Newest() *KeyTypeValueTypePair
Newest returns a pointer to the newest pair.
func (*KeyTypeValueTypeOrderedMap) Oldest ¶
func (om *KeyTypeValueTypeOrderedMap) Oldest() *KeyTypeValueTypePair
Oldest returns a pointer to the oldest pair.
type KeyTypeValueTypePair ¶
type KeyTypeValueTypePair struct { Key KeyType Value ValueType // contains filtered or unexported fields }
KeyTypeValueTypePair
func (*KeyTypeValueTypePair) Next ¶
func (p *KeyTypeValueTypePair) Next() *KeyTypeValueTypePair
Next returns a pointer to the next pair.
func (*KeyTypeValueTypePair) Prev ¶
func (p *KeyTypeValueTypePair) Prev() *KeyTypeValueTypePair
Prev returns a pointer to the previous pair.
type StringInterfaceOrderedMap ¶
type StringInterfaceOrderedMap struct {
// contains filtered or unexported fields
}
StringInterfaceOrderedMap
func NewStringInterfaceOrderedMap ¶
func NewStringInterfaceOrderedMap() *StringInterfaceOrderedMap
NewStringInterfaceOrderedMap creates a new StringInterfaceOrderedMap.
func (*StringInterfaceOrderedMap) Clear ¶ added in v0.14.1
func (om *StringInterfaceOrderedMap) Clear()
Clear removes all entries from this ordered map.
func (*StringInterfaceOrderedMap) Delete ¶
func (om *StringInterfaceOrderedMap) Delete(key string) (oldValue interface{}, present bool)
Delete removes the key-value pair, and returns what `Get` would have returned on that key prior to the call to `Delete`.
func (*StringInterfaceOrderedMap) Foreach ¶
func (om *StringInterfaceOrderedMap) Foreach(f func(key string, value interface{}))
Foreach iterates over the entries of the map in the insertion order, and invokes the provided function for each key-value pair.
func (*StringInterfaceOrderedMap) Get ¶
func (om *StringInterfaceOrderedMap) Get(key string) (result interface{}, present bool)
Get returns the value associated with the given key. Returns nil if not found. The second return value indicates if the key is present in the map.
func (*StringInterfaceOrderedMap) GetPair ¶
func (om *StringInterfaceOrderedMap) GetPair(key string) *StringInterfacePair
GetPair returns the key-value pair associated with the given key. Returns nil if not found.
func (*StringInterfaceOrderedMap) Len ¶
func (om *StringInterfaceOrderedMap) Len() int
Len returns the length of the ordered map.
func (*StringInterfaceOrderedMap) Newest ¶
func (om *StringInterfaceOrderedMap) Newest() *StringInterfacePair
Newest returns a pointer to the newest pair.
func (*StringInterfaceOrderedMap) Oldest ¶
func (om *StringInterfaceOrderedMap) Oldest() *StringInterfacePair
Oldest returns a pointer to the oldest pair.
func (*StringInterfaceOrderedMap) Set ¶
func (om *StringInterfaceOrderedMap) Set(key string, value interface{}) (oldValue interface{}, present bool)
Set sets the key-value pair, and returns what `Get` would have returned on that key prior to the call to `Set`.
type StringInterfacePair ¶
type StringInterfacePair struct { Key string Value interface{} // contains filtered or unexported fields }
StringInterfacePair
func (*StringInterfacePair) Next ¶
func (p *StringInterfacePair) Next() *StringInterfacePair
Next returns a pointer to the next pair.
func (*StringInterfacePair) Prev ¶
func (p *StringInterfacePair) Prev() *StringInterfacePair
Prev returns a pointer to the previous pair.
type StringStringOrderedMap ¶
type StringStringOrderedMap struct {
// contains filtered or unexported fields
}
StringStringOrderedMap
func NewStringStringOrderedMap ¶
func NewStringStringOrderedMap() *StringStringOrderedMap
NewStringStringOrderedMap creates a new StringStringOrderedMap.
func (*StringStringOrderedMap) Clear ¶ added in v0.14.1
func (om *StringStringOrderedMap) Clear()
Clear removes all entries from this ordered map.
func (*StringStringOrderedMap) Delete ¶
func (om *StringStringOrderedMap) Delete(key string) (oldValue string, present bool)
Delete removes the key-value pair, and returns what `Get` would have returned on that key prior to the call to `Delete`.
func (*StringStringOrderedMap) Foreach ¶
func (om *StringStringOrderedMap) Foreach(f func(key string, value string))
Foreach iterates over the entries of the map in the insertion order, and invokes the provided function for each key-value pair.
func (*StringStringOrderedMap) Get ¶
func (om *StringStringOrderedMap) Get(key string) (result string, present bool)
Get returns the value associated with the given key. Returns nil if not found. The second return value indicates if the key is present in the map.
func (*StringStringOrderedMap) GetPair ¶
func (om *StringStringOrderedMap) GetPair(key string) *StringStringPair
GetPair returns the key-value pair associated with the given key. Returns nil if not found.
func (*StringStringOrderedMap) Len ¶
func (om *StringStringOrderedMap) Len() int
Len returns the length of the ordered map.
func (*StringStringOrderedMap) Newest ¶
func (om *StringStringOrderedMap) Newest() *StringStringPair
Newest returns a pointer to the newest pair.
func (*StringStringOrderedMap) Oldest ¶
func (om *StringStringOrderedMap) Oldest() *StringStringPair
Oldest returns a pointer to the oldest pair.
type StringStringPair ¶
StringStringPair
func (*StringStringPair) Next ¶
func (p *StringStringPair) Next() *StringStringPair
Next returns a pointer to the next pair.
func (*StringStringPair) Prev ¶
func (p *StringStringPair) Prev() *StringStringPair
Prev returns a pointer to the previous pair.
type StringStructOrderedMap ¶ added in v0.13.2
type StringStructOrderedMap struct {
// contains filtered or unexported fields
}
StringStructOrderedMap
func NewStringStructOrderedMap ¶ added in v0.13.2
func NewStringStructOrderedMap() *StringStructOrderedMap
NewStringStructOrderedMap creates a new StringStructOrderedMap.
func (*StringStructOrderedMap) Clear ¶ added in v0.14.1
func (om *StringStructOrderedMap) Clear()
Clear removes all entries from this ordered map.
func (*StringStructOrderedMap) Delete ¶ added in v0.13.2
func (om *StringStructOrderedMap) Delete(key string) (oldValue struct{}, present bool)
Delete removes the key-value pair, and returns what `Get` would have returned on that key prior to the call to `Delete`.
func (*StringStructOrderedMap) Foreach ¶ added in v0.13.2
func (om *StringStructOrderedMap) Foreach(f func(key string, value struct{}))
Foreach iterates over the entries of the map in the insertion order, and invokes the provided function for each key-value pair.
func (*StringStructOrderedMap) Get ¶ added in v0.13.2
func (om *StringStructOrderedMap) Get(key string) (result struct{}, present bool)
Get returns the value associated with the given key. Returns nil if not found. The second return value indicates if the key is present in the map.
func (*StringStructOrderedMap) GetPair ¶ added in v0.13.2
func (om *StringStructOrderedMap) GetPair(key string) *StringStructPair
GetPair returns the key-value pair associated with the given key. Returns nil if not found.
func (*StringStructOrderedMap) Len ¶ added in v0.13.2
func (om *StringStructOrderedMap) Len() int
Len returns the length of the ordered map.
func (*StringStructOrderedMap) Newest ¶ added in v0.13.2
func (om *StringStructOrderedMap) Newest() *StringStructPair
Newest returns a pointer to the newest pair.
func (*StringStructOrderedMap) Oldest ¶ added in v0.13.2
func (om *StringStructOrderedMap) Oldest() *StringStructPair
Oldest returns a pointer to the oldest pair.
func (*StringStructOrderedMap) Set ¶ added in v0.13.2
func (om *StringStructOrderedMap) Set(key string, value struct{}) (oldValue struct{}, present bool)
Set sets the key-value pair, and returns what `Get` would have returned on that key prior to the call to `Set`.
type StringStructPair ¶ added in v0.13.2
type StringStructPair struct { Key string Value struct{} // contains filtered or unexported fields }
StringStructPair
func (*StringStructPair) Next ¶ added in v0.13.2
func (p *StringStructPair) Next() *StringStructPair
Next returns a pointer to the next pair.
func (*StringStructPair) Prev ¶ added in v0.13.2
func (p *StringStructPair) Prev() *StringStructPair
Prev returns a pointer to the previous pair.