Versions in this module Expand all Collapse all v0 v0.1.0 Mar 2, 2020 Changes in this version + var ErrInvalidUnmarshalType = errors.New("trying to unmarshal into wrong type") + func Marshal(v interface{}) ([]byte, error) + func Unmarshal(b []byte, v interface{}) (err error) + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (d *Decoder) Decode(v interface{}) (err error) + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Encode(v interface{}) error