rawgo

command
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Command rawgo enforces the project's "no raw goroutines outside the recovery wrappers" rule. Invoke it like a linter:

go run ./scripts/lint/rawgo \
  -baseline=pkg/panicdiag/lintrawgo/baseline.txt ./...

The driver loads packages in syntax-only mode so it works against a codebase that fails type-checking (e.g. an in-flight refactor where some test packages do not yet compile). Exit status:

0  no raw `go` violations found
1  one or more violations found
2  driver setup error (bad flag, missing baseline file, etc.)

See pkg/panicdiag/lintrawgo for the rationale and rules.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL