summaryrefslogtreecommitdiff
path: root/middleware.go
blob: 789296614ca8eb3f3e0a9cebffea115185efbc37 (plain) (blame)
1
2
3
4
5
6
7
8
9
package mux

import "net/http"

type Middleware func(http.Handler) http.Handler

func (m *Mux) Use(middlewares ...Middleware) {
	m.middlewares = append(m.middlewares, middlewares...)
}