Versions in this module Expand all Collapse all v0 v0.2.0 Jul 31, 2026 Changes in this version + const DefaultMaxDepth + const DefaultMaxSize + func Validate(v Value) error type Decoder + func NewDecoderWith(r io.Reader, opts Options) *Decoder + func (d *Decoder) Err() error + type Options struct + MaxDepth int + MaxSize int64 + Mode ParseMode + type ParseMode int + const ServerCompatible + const StrictMultiLine + const StrictSingleLine type Value + func ParseWith(data []byte, opts Options) (Value, error) v0.1.0 Jul 23, 2026retracted Changes in this version + func Equal(a, b Value) bool + func Marshal(v Value) ([]byte, error) + func MarshalIndent(v Value, prefix, indent string) ([]byte, error) + type Array []Value + type DataBlock []byte + type Decoder struct + func NewDecoder(r io.Reader) *Decoder + func (d *Decoder) Decode() (Value, error) + func (d *Decoder) InputOffset() int64 + func (d *Decoder) More() bool + type DictEntry struct + Key string + Value Value + type Dictionary []DictEntry + func (d Dictionary) Get(key string) (Value, bool) + func (d Dictionary) Keys() []string + func (d Dictionary) Set(key string, v Value) Dictionary + type Encoder struct + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Encode(v Value) error + func (e *Encoder) SetIndent(prefix, indent string) + type IPAddress struct + Addr netip.Addr + Port int + func (a IPAddress) HasPort() bool + func (a IPAddress) String() string + type Null struct + type Number int64 + type String string + type SyntaxError struct + Column int + Line int + Offset int64 + func (e *SyntaxError) Error() string + type TimeSpecial int + const TimeFuture + const TimeNone + const TimePast + type TimeStamp struct + Special TimeSpecial + Time time.Time + func NewTimeStamp(t time.Time) TimeStamp + func TimeStampFuture() TimeStamp + func TimeStampPast() TimeStamp + func (t TimeStamp) String() string + type Value interface + func Parse(data []byte) (Value, error) + func ParseString(s string) (Value, error) + type XML string