Versions in this module Expand all Collapse all v0 v0.1.0 Mar 19, 2024 Changes in this version + var ErrInvalidUTF8 = errors.New("invalid UTF-8 within string") + var NewError = errors.New + func AppendFloat(dst []byte, src float64, bits int) []byte + func AppendQuote[Bytes ~[]byte | ~string](dst []byte, src Bytes, flags *jsonflags.Flags) ([]byte, error) + func AppendUnquote[Bytes ~[]byte | ~string](dst []byte, src Bytes) (v []byte, err error) + func CompareUTF16[Bytes ~[]byte | ~string](x, y Bytes) int + func ConsumeFalse(b []byte) int + func ConsumeLiteral(b []byte, lit string) (n int, err error) + func ConsumeNull(b []byte) int + func ConsumeNumber(b []byte) (n int, err error) + func ConsumeSimpleNumber(b []byte) (n int) + func ConsumeSimpleString(b []byte) (n int) + func ConsumeString(flags *ValueFlags, b []byte, validateUTF8 bool) (n int, err error) + func ConsumeStringResumable(flags *ValueFlags, b []byte, resumeOffset int, validateUTF8 bool) (n int, err error) + func ConsumeTrue(b []byte) int + func ConsumeWhitespace(b []byte) (n int) + func HasSuffixByte(b []byte, c byte) bool + func NeedEscape[Bytes ~[]byte | ~string](src Bytes) bool + func NewInvalidCharacterError[Bytes ~[]byte | ~string](prefix Bytes, where string) error + func NewInvalidEscapeSequenceError[Bytes ~[]byte | ~string](what Bytes) error + func ParseFloat(b []byte, bits int) (v float64, ok bool) + func ParseUint(b []byte) (v uint64, ok bool) + func QuoteRune[Bytes ~[]byte | ~string](b Bytes) string + func ReformatNumber(dst, src []byte, canonicalize bool) ([]byte, int, error) + func ReformatString(dst, src []byte, flags *jsonflags.Flags) ([]byte, int, error) + func TrimSuffixByte(b []byte, c byte) []byte + func TrimSuffixString(b []byte) []byte + func TrimSuffixWhitespace(b []byte) []byte + func UnquoteMayCopy(b []byte, isVerbatim bool) []byte + type ConsumeNumberState uint + func ConsumeNumberResumable(b []byte, resumeOffset int, state ConsumeNumberState) (n int, _ ConsumeNumberState, err error) + type ValueFlags uint + func (f *ValueFlags) Join(f2 ValueFlags) + func (f ValueFlags) IsCanonical() bool + func (f ValueFlags) IsVerbatim() bool