https://github.com/go-http-utils/recover
:ambulance:HTTP panic recovery middleware for Go
https://github.com/go-http-utils/recover
Last synced: 5 months ago
JSON representation
:ambulance:HTTP panic recovery middleware for Go
- Host: GitHub
- URL: https://github.com/go-http-utils/recover
- Owner: go-http-utils
- License: mit
- Created: 2016-11-29T07:05:22.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-30T03:01:41.000Z (over 9 years ago)
- Last Synced: 2024-06-20T08:18:07.093Z (about 2 years ago)
- Language: Go
- Homepage: https://godoc.org/github.com/go-http-utils/recover
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# recover
[](https://travis-ci.org/go-http-utils/recover)
[](https://coveralls.io/github/go-http-utils/recover?branch=master)
HTTP panic recovery middleware for Go.
## Installation
```
go get -u github.com/go-http-utils/recover
```
## Documentation
API documentation can be found here: https://godoc.org/github.com/go-http-utils/recover
## Usage
```go
import (
"github.com/go-http-utils/recover"
)
```
```go
mux := http.NewServeMux()
// ...
http.ListenAndServe(":8080", recover.Handler(mux, recover.DefaultRecoverHandler))
```