Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 716 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 716 Bytes

recover

Build Status Coverage Status

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

import (
  "github.com/go-http-utils/recover"
)
mux := http.NewServeMux()

// ...

http.ListenAndServe(":8080", recover.Handler(mux, recover.DefaultRecoverHandler))