package nilfunc
import "golang.org/x/tools/go/analysis/passes/nilfunc"
Package nilfunc defines an Analyzer that checks for useless comparisons against nil.
Index ¶
Constants ¶
const Doc = `check for useless comparisons between functions and nil
A useless comparison is one like f == nil as opposed to f() == nil.`
Variables ¶
var Analyzer = &analysis.Analyzer{ Name: "nilfunc", Doc: Doc, Requires: []*analysis.Analyzer{inspect.Analyzer}, Run: run, }
Source Files ¶
nilfunc.go
- Version
- v0.1.10
- Published
- Mar 15, 2022
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 5 hours ago –
Tools for package owners.