Documentation
¶
Overview ¶
Package errs formats coded errors: every "must not" in the framework is reported with a code, an optional file:line, a one-line fix and a link to its docs page.
Index ¶
Constants ¶
View Source
const DocsBase = "https://aicoded.dev/docs/errors/"
DocsBase is the address of the error catalogue; a code's page is DocsBase + code.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct {
Code string // E-AREA-NNN
Pos string // file:line; empty when there is no source position
Msg string
Fix string
}
Error is a coded error.
Click to show internal directories.
Click to hide internal directories.