nilfunc
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package nilfunc defines an Analyzer that checks for uselesscomparisons against nil.
Analyzer nilfunc¶
nilfunc: check for useless comparisons between functions and nil
A useless comparison is one like f == nil as opposed to f() == nil.
Package nilfunc defines an Analyzer that checks for uselesscomparisons against nil.
Index¶
Constants¶
This section is empty.
Variables¶
var Analyzer = &analysis.Analyzer{Name: "nilfunc",Doc:analysisutil.MustExtractDoc(doc, "nilfunc"),URL: "https://pkg.go.dev/golang.org/x/tools/go/analysis/passes/nilfunc",Requires: []*analysis.Analyzer{inspect.Analyzer},Run: run,}
Functions¶
This section is empty.
Types¶
This section is empty.