blob: 2b561052b9824ded8ed4fef998be63506518591d (
plain) (
tree)
|
|
package mux
import "net/http"
type Middleware func(http.Handler) http.Handler
func Use(handler http.Handler, middlewares ...Middleware) http.Handler {
for _, h := range middlewares {
handler = h(handler)
}
return handler
}
|