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

PathSynopsis
go/analysis/passes/nilness/cmd
go/analysis/passes/nilness/cmd/nilnessThe nilness command applies the golang.org/x/tools/go/analysis/passes/nilness analysis to the specified packages of Go source code.
Version
v0.1.10
Published
Mar 15, 2022
Platform
js/wasm
Imports
6 packages
Last checked
5 hours ago

Tools for package owners.