Documentation
¶
Index ¶
- func IsJSON(s string) (map[string]any, bool)
- func IsLogfmt(s string) (string, string, bool)
- type Lexer
- func (l *Lexer) Advance()
- func (l *Lexer) Group(start, end byte) (_ string, ok bool)
- func (l *Lexer) NextByte() byte
- func (l *Lexer) PeekByte() byte
- func (l *Lexer) Pos() int
- func (l *Lexer) ReadQuoted(quote byte) (string, error)
- func (l *Lexer) ReadSep(sep byte) (_ string, ok bool)
- func (l *Lexer) ReadSepFunc(start int, isSep func(byte) bool) (_ string, ok bool)
- func (l *Lexer) ReadUnquoted(quote byte) (string, error)
- func (l *Lexer) Reset(s string)
- func (l *Lexer) Rewind()
- func (l *Lexer) SetPos(pos int)
- func (l *Lexer) Slice(s, e int) string
- func (l *Lexer) Valid() bool
- type SyntaxError
- type Token
- type TokenType
- type Tokenizer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Lexer ¶
type Lexer struct {
// contains filtered or unexported fields
}
func (*Lexer) ReadSepFunc ¶
type SyntaxError ¶
type SyntaxError struct {
// contains filtered or unexported fields
}
func (SyntaxError) Error ¶
func (e SyntaxError) Error() string
Click to show internal directories.
Click to hide internal directories.