Bug#913334: ITP: golang-github-justinas-alice -- Painless middleware chaining for Go
Package: wnpp
Severity: wishlist
Owner: Raúl Benencia <rul@kalgan.cc>
* Package name : golang-github-justinas-alice
Version : 0.0~git20171023.03f45bd-1
Upstream Author : Justinas Stankevičius
* URL : https://github.com/justinas/alice
* License : Expat
Programming Lang: Go
Description : Painless middleware chaining for Go
Alice provides a convenient way to chain HTTP middleware functions and
the app handler.
.
It transforms:
go Middleware1(Middleware2(Middleware3(App)))
to
go alice.New(Middleware1, Middleware2, Middleware3).Then(App)
.
None of the other middleware chaining solutions behaves exactly
like Alice. Alice is as minimal as it gets: in essence, it's just a
for loop that does the wrapping for you.
This is a dependency of Shoelaces (#905723) and will be maintained under
the Go team umbrella.
Reply to: