package
module
Version:
v0.0.0-...-cd36075
Opens a new window with list of versions in this module.
Published: Jan 5, 2015
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
recovery
Gohttp recovery middleware
Documentation
¶
New returns middleware that recovers from panics, logs the panic (and a
backtrace), and returns a HTTP 500 (Internal Server Error) status if
possible.
Prints a request ID if one is provided.
type Config struct {
Log func(string)
}
Config for recovery middleware
Source Files
¶
Click to show internal directories.
Click to hide internal directories.