Versions in this module Expand all Collapse all v1 v1.0.0 Jun 1, 2021 Changes in this version + var ErrUnexpectedEOF = errors.New("%v", io.ErrUnexpectedEOF) + func TokenEquals(x, y Token) bool + type Decoder struct + func NewDecoder(b []byte) *Decoder + func (d *Decoder) Clone() *Decoder + func (d *Decoder) Peek() (Token, error) + func (d *Decoder) Position(idx int) (line int, column int) + func (d *Decoder) Read() (Token, error) + type Encoder struct + func NewEncoder(indent string) (*Encoder, error) + func (e *Encoder) Bytes() []byte + func (e *Encoder) EndArray() + func (e *Encoder) EndObject() + func (e *Encoder) StartArray() + func (e *Encoder) StartObject() + func (e *Encoder) WriteBool(b bool) + func (e *Encoder) WriteFloat(n float64, bitSize int) + func (e *Encoder) WriteInt(n int64) + func (e *Encoder) WriteName(s string) error + func (e *Encoder) WriteNull() + func (e *Encoder) WriteString(s string) error + func (e *Encoder) WriteUint(n uint64) + type Kind uint16 + const ArrayClose + const ArrayOpen + const Bool + const EOF + const Invalid + const Name + const Null + const Number + const ObjectClose + const ObjectOpen + const String + func (k Kind) String() string + type Token struct + func (t Token) Bool() bool + func (t Token) Float(bitSize int) (float64, bool) + func (t Token) Int(bitSize int) (int64, bool) + func (t Token) Kind() Kind + func (t Token) Name() string + func (t Token) ParsedString() string + func (t Token) Pos() int + func (t Token) RawString() string + func (t Token) Uint(bitSize int) (uint64, bool)