Versions in this module Expand all Collapse all v1 v1.2.1 Mar 21, 2017 v1.2.0 Mar 21, 2017 Changes in this version + func CallName(call *ssa.CallCommon) string + func FilterDebug(instr []ssa.Instruction) []ssa.Instruction + func IsBlank(id ast.Expr) bool + func IsCallTo(call *ssa.CallCommon, name string) bool + func IsGenerated(f *ast.File) bool + func IsIdent(expr ast.Expr, ident string) bool + func IsZero(expr ast.Expr) bool + func NodeFns(pkgs []*Pkg) map[ast.Node]*ssa.Function + type Checker interface + Funcs func() map[string]Func + Init func(*Program) + type Func func(*Job) + type Ignore struct + Checks []string + Pattern string + type Job struct + Program *Program + func (j *Job) BoolConst(expr ast.Expr) bool + func (j *Job) EnclosingSSAFunction(node Positioner) *ssa.Function + func (j *Job) Errorf(n Positioner, format string, args ...interface{}) *Problem + func (j *Job) ExprToInt(expr ast.Expr) (int64, bool) + func (j *Job) ExprToString(expr ast.Expr) (string, bool) + func (j *Job) File(node Positioner) *ast.File + func (j *Job) IsBoolConst(expr ast.Expr) bool + func (j *Job) IsFunctionCallName(node ast.Node, name string) bool + func (j *Job) IsFunctionCallNameAny(node ast.Node, names ...string) bool + func (j *Job) IsGoVersion(minor int) bool + func (j *Job) IsInMain(node Positioner) bool + func (j *Job) IsInTest(node Positioner) bool + func (j *Job) IsNil(expr ast.Expr) bool + func (j *Job) NodePackage(node Positioner) *ssa.Package + func (j *Job) Render(x interface{}) string + func (j *Job) RenderArgs(args []ast.Expr) string + type Linter struct + Checker Checker + GoVersion int + Ignores []Ignore + func (l *Linter) Lint(lprog *loader.Program) []Problem + type Pkg struct + Info *loader.PackageInfo + type Positioner interface + Pos func() token.Pos + type Problem struct + Position token.Pos + Text string + func (p *Problem) String() string + type Program struct + AllFunctions []*ssa.Function + Files []*ast.File + GoVersion int + Info *types.Info + InitialFunctions []*ssa.Function + Packages []*Pkg + Prog *loader.Program + SSA *ssa.Program