Versions in this module Expand all Collapse all v1 v1.0.1 Jan 30, 2025 Changes in this version + const EntityTypeArray + const EntityTypeBooleanFalse + const EntityTypeBooleanTrue + const EntityTypeInvalid + const EntityTypeNull + const EntityTypeNumber + const EntityTypeObject + const EntityTypeString v1.0.0 Jan 30, 2025 Changes in this version + const EntityType_Array + const EntityType_Boolean_False + const EntityType_Boolean_True + const EntityType_Invalid + const EntityType_Null + const EntityType_Number + const EntityType_Object + const EntityType_String + func ScanNumber(data []byte, i int) (float64, int, error) + type Bool struct + Name Prefix + Value bool + type BooleanDec func(prefixes Prefixes, val Bool) + type Callbacks struct + MaxDepth int + OnBoolean BooleanDec + OnNull NullDec + OnNumber NumberDec + OnRaw func(prefixes Prefixes, name Prefix, value Pos) + OnString StringDec + type EntityType uint8 + func GuessNextEntityType(data []byte, i int) EntityType + type Null struct + Name Prefix + type NullDec func(prefixes Prefixes, val Null) + type Number struct + Name Prefix + Value float64 + type NumberDec func(prefixes Prefixes, val Number) + type Pos struct + From int + To int + func ScanArray(data []byte, from int, cb *Callbacks) (pos Pos, found bool, err error) + func ScanObject(data []byte, from int, cb *Callbacks) (pos Pos, found bool, err error) + func (p Pos) Bytes(data []byte) []byte + func (p Pos) String(data []byte) string + type Prefix struct + func (pfx Prefix) Bytes(data []byte) []byte + func (pfx Prefix) Index() int + func (pfx Prefix) IsArrayIndex() bool + func (pfx Prefix) IsObjectKey() bool + func (pfx Prefix) String(data []byte) string + type Prefixes []Prefix + func (pfxs Prefixes) AsString(data []byte) string + type String struct + Name Prefix + Value Pos + type StringDec func(prefixes Prefixes, val String) + type SyntaxError struct + Message string + Offset int + SubErr *SyntaxError + func (s *SyntaxError) Error() string