Skip to content

Conversation

jsvensson
Copy link
Contributor

@jsvensson jsvensson commented Mar 14, 2018

Enables neater syntax when chaining several middleware functions:

router.Use(mwFunc1, mwFunc2, mwfunc3)

Fully backwards-compatible when using a single function as argument.

Enables neater syntax when chaining several middleware functions.
@kisielk kisielk merged commit 4dbd923 into gorilla:master Mar 14, 2018
@kisielk
Copy link
Contributor

kisielk commented Mar 14, 2018

Good idea, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants