Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckMode ¶
type CheckMode int
const ( CheckConstants CheckMode = 1 << iota CheckFields CheckFunctions CheckTypes CheckVariables CheckAll = CheckConstants | CheckFields | CheckFunctions | CheckTypes | CheckVariables )
type Checker ¶
type Checker struct {
Mode CheckMode
WholeProgram bool
ConsiderReflection bool
Debug io.Writer
// contains filtered or unexported fields
}
func NewChecker ¶
type LintChecker ¶
type LintChecker struct {
// contains filtered or unexported fields
}
func NewLintChecker ¶
func NewLintChecker(c *Checker) *LintChecker
func NewLintData ¶
func NewLintData(used []Used) *LintChecker
func (*LintChecker) Init ¶
func (l *LintChecker) Init(*lint.Program)
func (*LintChecker) Lint ¶
func (l *LintChecker) Lint(j *lint.Job)
func (*LintChecker) LintProblems ¶
func (l *LintChecker) LintProblems(prog *loader.Program) (problems []Problem)
type Problem ¶
type Problem struct {
Pos lint.Positioner
Text string
}
Click to show internal directories.
Click to hide internal directories.