Documentation ¶
Index ¶
- Variables
- type KV
- type SortedMap
- func (m *SortedMap) Copy() *SortedMap
- func (m *SortedMap) Format() []string
- func (m *SortedMap) Get(key any) (any, bool)
- func (m *SortedMap) GetOr(key, dft any) any
- func (m *SortedMap) GetString(key any) (string, bool)
- func (m *SortedMap) GetStringOr(key any, dft string) string
- func (m *SortedMap) HasKey(key any) bool
- func (m *SortedMap) HasValue(value any) bool
- func (m *SortedMap) Insert(sm *SortedMap)
- func (m *SortedMap) Keys() []any
- func (m *SortedMap) Range(iterator func(key, value any))
- func (m *SortedMap) RangeIf(iterator func(key, value any) bool)
- func (m *SortedMap) Remove(key any) (value any, ok bool)
- func (m *SortedMap) Reset()
- func (m *SortedMap) Set(kv KV) error
- func (m *SortedMap) SetExpression(expression string) (key, value any, err error)
- func (m *SortedMap) SetKV(key, value any)
- func (m *SortedMap) Values() []any
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidKVExpression = errors.New(`invalid key-value expression`) ErrInvalidKVS = errors.New("the length of kv must be an even number") )
Functions ¶
This section is empty.
Types ¶
type SortedMap ¶
type SortedMap struct {
// contains filtered or unexported fields
}
func (*SortedMap) SetExpression ¶
Click to show internal directories.
Click to hide internal directories.