Versions in this module Expand all Collapse all v1 v1.2.1 Dec 7, 2021 v1.2.0 Apr 22, 2019 Changes in this version + var ErrInvalidDocument = errors.New("invalid document") + var ErrInvalidRoot = errors.New("data at the root level is invalid") + type Decoder struct + func NewDecoder(reader io.Reader) *Decoder + func NewDecoderWithPrefix(reader io.Reader, attrPrefix, textPrefix string) *Decoder + func (d *Decoder) Decode() (map[string]interface{}, error)