Documentation
¶
Overview ¶
Package errorlib contains tools to deal with errors, including the heavily-used `ErrorString` type (for errors that are compile-time constants) and `LoggedChannel` function (to report non-fatal errors during concurrent execution)
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Errors = make(chan error)
Errors is the default error channel used by functions in this package.
Functions ¶
func LoggedChannel ¶
func LoggedChannel() chan error
LoggedChannel creates an error channel that will automatically log errors sent to it to the logger specified in kit/log.
Types ¶
type ErrorString ¶
type ErrorString string
ErrorString is a string with an Error() method. This lets you declare errors as visible compile-time constants, which facilitates various IDE tools.
func (ErrorString) Error ¶
func (err ErrorString) Error() string
Click to show internal directories.
Click to hide internal directories.