blob: c297d659ea8ec3df914177c3488fb79e3de176ee (
plain) (
blame)
1
2
3
4
5
6
7
8
|
package utils
import "net/http"
// Middleware in itself simply takes a http.Handler as the first parameter, wraps
// it and returns a new http.Handler for the server to call (wraps handlers with
// closures according to the principle of Russian doll).
type Middleware func(http.Handler) http.Handler
|