# Functions
Log is the default LoggerFunc.
Must panics if err is not nil.
MustWithStatus panics with the given status code if err is not nil.
New returns a new Error with the given status code and message.
NewCustomContextMiddleware returns a middleware which will recover when subsequent handlers panics.
NewCustomMiddleware returns a middleware which will recover when subsequent handlers panics.
Newf returns a new Error with the given status code and message, allowing it to be formatted using fmt.Sprintf.
NewJSONErrorResponseWriter returns an ErrorResponseWriterFunc which serializes errors into JSON.
NewMiddleware returns a middleware which will recover when subsequent handlers panics.
New returns a new Error wrapping parent with the given status code and message.
Newf returns a new Error wrapping parent with the given status code and message, allowing it to be formatted using fmt.Sprintf.
NoOpLog is a no-operation LoggerFunc.
Wrap is the default WrapperFunc.
WrapContext is the default WrapperContextFunc.
WriteTextErrorResponse is an error response writer to be used with NewMiddleware.
# Variables
WriteDefaultJSONErrorResponse is ErrorResponseWriterFunc which serializes errors into JSON using the default format.
# Interfaces
Error represents an error which can be converted to an HTTP response.
# Type aliases
An ErrorResponseWriterFunc is a function which writes an Error into a ResponseWriter.
A LoggerFunc purpose is to log an error, after it has been wrapped.
A WrapperContextFunc must wrap a panic (r) into an Error.
A WrapperFunc must wrap a panic (r) into an Error.