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