recovery

package module
v0.0.0-...-6cba69d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2014 License: Apache-2.0 Imports: 4 Imported by: 14

README

net-http-recover

Build Status

See GoDoc for documentation.

Simple Go net/http recovery middleware

http.Handler middleware for panic recovery.

I've copy/pasted this code around several times, so I put it into a proper package.

Inspired by https://github.com/codegangsta/negroni and https://github.com/gorilla/handlers

Documentation

Overview

Package recovery implements a simple net/http recovery middleware

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(out io.Writer, h http.Handler, printStack bool) http.Handler

Handler returns a new http.Handler that will wrap another handler and recover any panics

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL