tools: golang.org/x/tools/go/analysis/passes/nilness Index | Files | Directories

package nilness

import "golang.org/x/tools/go/analysis/passes/nilness"

Package nilness inspects the control-flow graph of an SSA function and reports errors such as nil pointer dereferences and degenerate nil pointer comparisons.

Index

Package Files

nilness.go

Constants

const Doc = "" /* 602 byte string literal not displayed */

Variables

var Analyzer = &analysis.Analyzer{
    Name:     "nilness",
    Doc:      Doc,
    Run:      run,
    Requires: []*analysis.Analyzer{buildssa.Analyzer},
}

Directories

PathSynopsis
cmd/nilnessThe nilness command applies the golang.org/x/tools/go/analysis/passes/nilness analysis to the specified packages of Go source code.

Package nilness imports 6 packages (graph) and is imported by 1 packages. Updated 2019-09-23. Refresh now. Tools for package owners.