package
0.31.0
Repository: https://go.googlesource.com/tools
Documentation: pkg.go.dev

# Packages

Package analysistest provides utilities for testing analyzers.
Package checker provides an analysis driver based on the [golang.org/x/tools/go/packages] representation of a set of packages and all their dependencies, as produced by [packages.Load].
Package multichecker defines the main function for an analysis driver with several analyzers.
No description provided by the author
Package singlechecker defines the main function for an analysis driver with only a single analysis.
The unitchecker package defines the main function for an analysis driver that analyzes a single compilation unit during a build.

# Functions

Validate reports an error if any of the analyzers are misconfigured.

# Structs

An Analyzer describes an analysis function and its options.
No description provided by the author
A Diagnostic is a message associated with a source location or range.
A Module describes the module to which a package belongs.
ObjectFact is an object together with an associated fact.
PackageFact is a package together with an associated fact.
A Pass provides information to the Run function that applies a specific analyzer to a single Go package.
RelatedInformation contains information related to a diagnostic.
A SuggestedFix is a code change associated with a Diagnostic that a user can choose to apply to their code.
A TextEdit represents the replacement of the code between Pos and End with the new text.

# Interfaces

A Fact is an intermediate fact produced during analysis.
The Range interface provides a range.