HTTP panic recovery middleware for Go.
go get -u github.com/go-http-utils/recover
API documentation can be found here: https://godoc.org/github.com/go-http-utils/recover
import (
"github.com/go-http-utils/recover"
)
mux := http.NewServeMux()
// ...
http.ListenAndServe(":8080", recover.Handler(mux, recover.DefaultRecoverHandler))