Documentation ¶ Index ¶ type Lexer func NewLexer(sql string) *Lexer func (l *Lexer) NextToken() string 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 NewLexer ¶ func NewLexer(sql string) *Lexer func (*Lexer) NextToken ¶ func (l *Lexer) NextToken() string It only returns uppercased identifiers and keywords. It's used to search for some specified keywords. It doesn't need to strict but it needs to be fast enough. Source Files ¶ View all Source files lex.go Click to show internal directories. Click to hide internal directories.