Simple Go http middleware to catch (and optionally display) panics gracefully
https://pkg.go.dev/github.com/lrstanley/recoverer β// momentum
// why it's here
- Active: last commit today
- Health 85/100 with only 7 stars
- Around since 2017 and still shipping
- Accepts sponsorship (github)
// how to help
// readme
:link: Table of Contents
:grey_question: Why
recoverer is a simple Go http middleware to catch (and optionally display when debugging) panics, and attempt to gracefully recover them. recoverer also has the ability to display such errors (and exported expvar variables) via a clean and simple html generated error page (shown below).
Examples
go get -u github.com/lrstanley/recoverer@latest