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 ¶
Constants ¶
const Doc = "" /* 765 byte string literal not displayed */
Variables ¶
var Analyzer = &analysis.Analyzer{ Name: "nilness", Doc: Doc, Run: run, Requires: []*analysis.Analyzer{buildssa.Analyzer}, }
Source Files ¶
nilness.go
Directories ¶
Path | Synopsis |
---|---|
go/analysis/passes/nilness/cmd | |
go/analysis/passes/nilness/cmd/nilness | The nilness command applies the golang.org/x/tools/go/analysis/passes/nilness analysis to the specified packages of Go source code. |
- Version
- v0.3.0
- Published
- Nov 9, 2022
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 5 hours ago –
Tools for package owners.