Documentation ¶ Index ¶ func CalcLintLine(source, scope []byte, goal func(line []byte) bool) (line string, num int) type LintError func New(script script.Script, stmt string, lint string, getLine func(line []byte) bool) LintError func (e LintError) Error() string func (e LintError) StmtName() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func CalcLintLine ¶ func CalcLintLine(source, scope []byte, goal func(line []byte) bool) (line string, num int) CalcLintLine calculates the lint error line number of the SQL script Types ¶ type LintError ¶ type LintError struct { ScriptName string // the script name Stmt string // the SQL statement Lint string // the error lint info Line string // the error line content LintNo int // the error line No } func New ¶ func New(script script.Script, stmt string, lint string, getLine func(line []byte) bool) LintError func (LintError) Error ¶ func (e LintError) Error() string func (LintError) StmtName ¶ func (e LintError) StmtName() string Source Files ¶ View all Source files calcu_line_num.go error.go Click to show internal directories. Click to hide internal directories.