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

# Functions

Help implements the help subcommand for a multichecker or unitchecker style command.
Parse creates a flag for each of the analyzer's flags, including (in multi mode) a flag named after the analyzer, parses the flags, then filters and returns the list of analyzers enabled by flags.
PrintPlain prints a diagnostic in plain text form.
ResolveURL resolves the URL field for a Diagnostic from an Analyzer and returns the URL.

# Variables

-c=N: if N>0, display offending line plus N lines of context.
-json.

# Structs

A JSONDiagnostic describes the JSON schema of an analysis.Diagnostic.
A JSONRelated describes a secondary position and message related to a primary diagnostic.
A JSONSuggestedFix describes an edit that should be applied as a whole or not at all.
A TextEdit describes the replacement of a portion of a file.

# Type aliases

A JSONTree is a mapping from package ID to analysis name to result.