package
0.0.0-20240310010237-a3f02065c60a
Repository: https://github.com/goki/go-tools.git
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, with context specified by the -c flag.
ResolveURL resolves the URL field for a Diagnostic from an Analyzer and returns the URL.
# Structs
A JSONDiagnostic can be used to encode and decode analysis.Diagnostics to and from JSON.
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.