The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Package exitcode maps errors to process exit codes. Lower layers return plain
or sentinel errors; the cmd boundary annotates them with a code via Wrap (or
returns an ExitError directly), and main resolves the final code via Resolve.
This package is a leaf; it defines the generic exit-code vocabulary (ADR-0003)
and leaves domain-specific codes to the consuming apps.
Resolve maps an error to an exit code: nil → 0, an error carrying an exit code
→ that code, a context.Canceled error (e.g. a Ctrl-C'd run) → 130, anything
else → 1 (the generic failure default).
Wrap annotates err with an exit code. It returns nil when err is nil. If err
already carries an exit code (anywhere in its chain), the original code is
preserved — the first/innermost classification wins.
type ExitError struct {
Code int Message string Err error}
ExitError carries a process exit code alongside an error or message.
Construct it directly with a Code and Message, or via Wrap to annotate an
existing error.