Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Code ¶
type Code uint8
Code defines the class of error.
const ( // UnknownError is the default. UnknownError Code = iota // UserError is for errors caused by user input (e.g., bad flag value). // These messages are safe to show directly to the user. UserError // SystemError is for internal problems (e.g., can't write to a file). // The message is for logging; a generic message is shown to the user. SystemError )
Click to show internal directories.
Click to hide internal directories.