Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Use() variadic #355

Merged
merged 1 commit into from
Mar 14, 2018
Merged

Make Use() variadic #355

merged 1 commit into from
Mar 14, 2018

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