Versions in this module Expand all Collapse all v1 v1.0.0 Aug 19, 2018 Changes in this version + func DecodeBytes(b []byte, val interface{}) error + func DecodeString(in string, val interface{}) error + func EncodeBytes(val interface{}) ([]byte, error) + func EncodeString(val interface{}) (string, error) + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (d *Decoder) BytesParsed() int + func (d *Decoder) Decode(val interface{}) error + func (d *Decoder) SetFailOnUnorderedKeys(fail bool) + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Encode(val interface{}) error + type Marshaler interface + MarshalBencode func() ([]byte, error) + type RawMessage []byte + type Unmarshaler interface + UnmarshalBencode func([]byte) error