Documentation ¶
Index ¶
- type Lexer
- func (lx *Lexer) ExpectBeginArray() bool
- func (lx *Lexer) ExpectBeginObject() bool
- func (lx *Lexer) ExpectBool() (bool, bool)
- func (lx *Lexer) ExpectEOF() bool
- func (lx *Lexer) ExpectEndArray() bool
- func (lx *Lexer) ExpectEndObject() bool
- func (lx *Lexer) ExpectFloat64() (float64, bool)
- func (lx *Lexer) ExpectNameSeparator() bool
- func (lx *Lexer) ExpectNull() bool
- func (lx *Lexer) ExpectString() (string, bool)
- func (lx *Lexer) ExpectUint64() (uint64, bool)
- func (lx *Lexer) ExpectValueSeparator() bool
- func (lx *Lexer) NextTokenType() TokenType
- type Parser
- func (pa *Parser) Parse() (any, error)
- func (pa *Parser) ParseArray() ([]any, error)
- func (pa *Parser) ParseBool() (bool, error)
- func (pa *Parser) ParseNull() (any, error)
- func (pa *Parser) ParseNumber() (float64, error)
- func (pa *Parser) ParseObject() (map[string]any, error)
- func (pa *Parser) ParseString() (string, error)
- func (pa *Parser) ParseValue() (any, error)
- type Scanner
- func (sc *Scanner) ASCIIZeroLen() int
- func (sc *Scanner) Bytes(n int) []byte
- func (sc *Scanner) DigitLen() int
- func (sc *Scanner) Err() error
- func (sc *Scanner) HexLen() int
- func (sc *Scanner) Load() bool
- func (sc *Scanner) LoadedLen() int
- func (sc *Scanner) MultiByteUTF8Len() int
- func (sc *Scanner) Peek() byte
- func (sc *Scanner) Skip(n int)
- func (sc *Scanner) UnescapedASCIILen() int
- func (sc *Scanner) WhiteSpaceLen() int
- type TokenType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lexer ¶
type Lexer struct {
// contains filtered or unexported fields
}
func (*Lexer) ExpectBeginArray ¶
func (*Lexer) ExpectBeginObject ¶
func (*Lexer) ExpectBool ¶
func (*Lexer) ExpectEndArray ¶
func (*Lexer) ExpectEndObject ¶
func (*Lexer) ExpectFloat64 ¶
func (*Lexer) ExpectNameSeparator ¶
func (*Lexer) ExpectNull ¶
func (*Lexer) ExpectString ¶
func (*Lexer) ExpectUint64 ¶
func (*Lexer) ExpectValueSeparator ¶
func (*Lexer) NextTokenType ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) ParseArray ¶
func (*Parser) ParseNumber ¶
func (*Parser) ParseString ¶
func (*Parser) ParseValue ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func NewScanner ¶
func (*Scanner) ASCIIZeroLen ¶
func (*Scanner) MultiByteUTF8Len ¶
func (*Scanner) UnescapedASCIILen ¶
func (*Scanner) WhiteSpaceLen ¶
Click to show internal directories.
Click to hide internal directories.