Skip to content

Commit

Permalink
[docs] Fix doc.go
Browse files Browse the repository at this point in the history
Addresses #294 (comment)
  • Loading branch information
elithrar authored Jan 18, 2018
1 parent 69dae3b commit 5cebbc3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5cebbc3

Please sign in to comment.