Versions in this module Expand all Collapse all v3 v3.4.0 Oct 30, 2026 Changes in this version + var Exit = os.Exit + func Finish(name string, report Report, err error, check, verbose bool, ...) int + func FuncDeclName(fn *ast.FuncDecl) string + func IdentsAsExprs(names []*ast.Ident) []ast.Expr + func Main(runMain func(args []string, stdout, stderr io.Writer) int) + func Run(name string, usage Usage, args []string, stderr io.Writer, ...) int + type Command struct + Check bool + Dir string + Flags *flag.FlagSet + Verbose bool + func NewCommand(name string, usage Usage, stderr io.Writer) *Command + func (c *Command) Parse(args []string) (code int, goOn bool) + func (c *Command) Patterns(defaults []string) []string + type Counts struct + Excused int + Findings int + Stale int + Unjudged int + Unknown int + type Declaration struct + Category string + Reason string + type Report interface + OK func() bool + Write func(out io.Writer, verbose bool) + type Table struct + Categories map[string]string + Declared map[string]Declaration + func (t Table) UnknownCategories() []string + type Usage struct + Check string + Dir string + Verbose string + type Verdict struct + Excused []F + Findings []F + Stale []string + Unjudged []string + Unknown []string + func Judge[F any](findings []F, key func(F) string, table Table, scanned map[string]struct{}, ...) Verdict[F] + func (v Verdict[F]) Counts() Counts + func (v Verdict[F]) OK() bool