Documentation ¶
Index ¶
- Constants
- Variables
- func IsBinary(b []byte) bool
- type KeyValue
- func (kv KeyValue) GetChild(key string) (child KeyValue, found bool)
- func (kv KeyValue) GetChildrenAsMap() (ret map[string]string)
- func (kv KeyValue) GetChildrenAsSlice() (ret []string)
- func (kv *KeyValue) HasChild(key string) bool
- func (kv *KeyValue) SetChild(value KeyValue)
- func (kv *KeyValue) SortChildren()
- func (kv KeyValue) String() string
- func (kv KeyValue) ToMapInner() (m map[string]interface{})
- func (kv KeyValue) ToMapOuter() (m map[string]interface{})
- type Token
- type TokenType
Constants ¶
Variables ¶
View Source
var (
ErrWideString = errors.New("WideString not supported")
)
Functions ¶
Types ¶
type KeyValue ¶
type KeyValue struct { Key string `json:"key"` Value string `json:"value"` Children []KeyValue `json:"children"` }
func (KeyValue) GetChildrenAsMap ¶
func (KeyValue) GetChildrenAsSlice ¶
func (*KeyValue) SortChildren ¶
func (kv *KeyValue) SortChildren()
func (KeyValue) ToMapInner ¶
Transforms to nested maps Does not include top level
func (KeyValue) ToMapOuter ¶
Transforms to nested maps Includes top level
Click to show internal directories.
Click to hide internal directories.