Versions in this module Expand all Collapse all v1 v1.7.1 Jan 29, 2021 v1.7.0 Dec 8, 2020 Changes in this version + func Marshal(v interface{}) ([]byte, error) + func MarshalAtlased(cfg EncodeOptions, v interface{}, atl atlas.Atlas) ([]byte, error) + func Unmarshal(data []byte, v interface{}) error + func UnmarshalAtlased(data []byte, v interface{}, atl atlas.Atlas) error + type DecodeOptions struct + func (DecodeOptions) IsDecodeOptions() + type Decoder struct + func NewDecoder(r io.Reader) (d *Decoder) + func (d *Decoder) Reset() + func (d *Decoder) Step(tokenSlot *Token) (done bool, err error) + type EncodeOptions struct + Indent []byte + Line []byte + func (EncodeOptions) IsEncodeOptions() + type Encoder struct + func NewEncoder(wr io.Writer, cfg EncodeOptions) *Encoder + func (d *Encoder) Reset() + func (d *Encoder) Step(tok *Token) (done bool, err error) + type Marshaller struct + func NewMarshaller(wr io.Writer) *Marshaller + func NewMarshallerAtlased(wr io.Writer, cfg EncodeOptions, atl atlas.Atlas) *Marshaller + func (x *Marshaller) Marshal(v interface{}) error + type Unmarshaller struct + func NewUnmarshaller(r io.Reader) *Unmarshaller + func NewUnmarshallerAtlased(r io.Reader, atl atlas.Atlas) *Unmarshaller + func (x *Unmarshaller) Unmarshal(v interface{}) error