Versions in this module Expand all Collapse all v0 v0.0.2 Mar 24, 2021 v0.0.1 Mar 23, 2021 Changes in this version + const ByteStringDelimiter + const DictEnd + const DictStart + const IntegerEnd + const IntegerStart + const ListEnd + const ListStart + var ErrUnknownType = errors.New("unknown object type") + var ErrWrongStartByte = errors.New("wrong object start byte") + type ByteString struct + func NewByteString(s string) ByteString + func (bs *ByteString) UnmarshalBinary(data []byte) error + func (bs ByteString) MarshalBinary() ([]byte, error) + func (bs ByteString) Value() string + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (d *Decoder) Decode(v interface{}) error + type Dict struct + func NewDict(d map[ByteString]interface{}) Dict + func (d *Dict) UnmarshalBinary(data []byte) error + func (d Dict) MarshalBinary() ([]byte, error) + func (d Dict) Value() map[string]interface{} + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Encode(v interface{}) error + type Integer struct + func NewInteger(i int64) Integer + func (i *Integer) UnmarshalBinary(data []byte) error + func (i Integer) MarshalBinary() ([]byte, error) + func (i Integer) Value() int64 + type List struct + func NewList(l []interface{}) List + func (l *List) UnmarshalBinary(data []byte) error + func (l List) MarshalBinary() ([]byte, error) + func (l List) Value() []interface{}