Versions in this module Expand all Collapse all v0 v0.1.0 Apr 25, 2020 Changes in this version + type BinaryDecoder struct + func NewBinaryDecoder(r io.Reader) *BinaryDecoder + func (d *BinaryDecoder) Decode(kv KeyValue) error + type BinaryEncoder struct + func NewBinaryEncoder(w io.Writer) *BinaryEncoder + func (e *BinaryEncoder) Encode(kv KeyValue) error + type KeyValue interface + AddChild func(KeyValue) KeyValue + AddColor func(key, value string) KeyValue + AddFloat32 func(key, value string) KeyValue + AddInt32 func(key, value string) KeyValue + AddInt64 func(key, value string) KeyValue + AddObject func(key string) KeyValue + AddPointer func(key, value string) KeyValue + AddString func(key, value string) KeyValue + AddUint64 func(key, value string) KeyValue + Child func(key string) KeyValue + Children func() []KeyValue + Key func() string + Parent func() KeyValue + SetChildren func(...KeyValue) KeyValue + SetKey func(key string) KeyValue + SetParent func(KeyValue) KeyValue + SetType func(Type) KeyValue + SetValue func(value string) KeyValue + Type func() Type + Value func() string + func NewKeyValue(t Type, key, value string, parent KeyValue) KeyValue + func NewKeyValueColor(key, value string, parent KeyValue) KeyValue + func NewKeyValueEmpty() KeyValue + func NewKeyValueFloat32(key, value string, parent KeyValue) KeyValue + func NewKeyValueInt32(key, value string, parent KeyValue) KeyValue + func NewKeyValueInt64(key, value string, parent KeyValue) KeyValue + func NewKeyValueObject(key string, parent KeyValue) KeyValue + func NewKeyValuePointer(key, value string, parent KeyValue) KeyValue + func NewKeyValueRoot(key string) KeyValue + func NewKeyValueString(key, value string, parent KeyValue) KeyValue + func NewKeyValueUint64(key, value string, parent KeyValue) KeyValue + type TextEncoder struct + func NewTextEncoder(w io.Writer) *TextEncoder + func (e *TextEncoder) Encode(kv KeyValue) error + type Type int8 + const TypeColor + const TypeEnd + const TypeFloat32 + const TypeInt32 + const TypeInt64 + const TypeInvalid + const TypeObject + const TypePointer + const TypeString + const TypeUint64 + const TypeWideString + func TypeFromByte(b byte) Type + func (t Type) Byte() byte + func (t Type) String() string