package
Version:
v0.86.0
Opens a new window with list of versions in this module.
Published: Aug 7, 2026
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package analyzerutil provides shared analyzer setup for custom linters.
-
func New(name, doc string, run func(*analysis.Pass) (any, error)) *analysis.Analyzer
-
func NewAtPath(name, doc, packagePath string, run func(*analysis.Pass) (any, error)) *analysis.Analyzer
-
func Preorder(pass *analysis.Pass, nodeFilter []ast.Node, fn func(ast.Node)) (any, error)
New creates an analyzer with the standard linter dependencies and URL.
NewAtPath creates an analyzer with the standard linter dependencies and URL
for packagePath.
Preorder runs fn for each node matching nodeFilter.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.