[docs] Fix doc.go (#333)

Addresses https://github.com/gorilla/mux/pull/294#discussion_r162309666
This commit is contained in:
Matt Silverlock
2018-01-18 09:53:57 -08:00
committed by GitHub
parent 69dae3b874
commit ad8790881f

3
doc.go
View File

@@ -239,8 +239,7 @@ as well:
"category", "technology",
"id", "42")
Since **vX.Y.Z**, mux supports the addition of middlewares to a [Router](https://godoc.org/github.com/gorilla/mux#Router), which are executed if a
match is found (including subrouters). Middlewares are defined using the de facto standard type:
Mux supports the addition of middlewares to a Router, which are executed in the order they are added if a match is found, including its subrouters. Middlewares are (typically) small pieces of code which take one request, do something with it, and pass it down to another middleware or the final handler. Some common use cases for middleware are request logging, header manipulation, or ResponseWriter hijacking.
type MiddlewareFunc func(http.Handler) http.Handler