Help us shape the future of Go! Take the 2026 Go Developer Survey

check-error-codes

command
v1.21.20 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Command check-error-codes rejects string-literal error codes in non-generated, non-test Go files. Error codes must be internal/errcode constants so the server can only emit the documented vocabulary (ADR 2026-10-08, issue #1048).

Usage: go run ./scripts/check-error-codes <root>

Jump to

Keyboard shortcuts

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