Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
LoggerCtxKey = &contextKey{"Logger"}
)
Functions ¶
func Recoverer ¶
Recoverer is a middleware that recovers from panics, logs the panic (and a backtrace), and returns a HTTP 500 (Internal Server Error) status if possible. Recoverer prints a request ID if one is provided.
Alternatively, look at https://github.com/pressly/lg middleware pkgs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.