Early prototype; initial commit

This commit is contained in:
Matthew Holt
2015-01-13 12:43:45 -07:00
commit 4497a16fb0
17 changed files with 1343 additions and 0 deletions

11
middleware/middleware.go Normal file
View File

@ -0,0 +1,11 @@
// Package middleware includes a variety of middleware for
// the servers to use, according to their configuration.
package middleware
import "net/http"
// Middleware is a type of function that generates a new
// layer of middleware. It is imperative that the HandlerFunc
// being passed in is executed by the middleware, otherwise
// part of the stack will not be called.
type Middleware func(http.HandlerFunc) http.HandlerFunc