justinas/alice
View on GitHub ↗ ★ 3,375 Go
Painless middleware chaining for Go
3 mentions on Hacker News by 3 people: 0 stories, 3 comments · first 2014-11-23 · latest 2015-11-10
20082026
-
…for most CRUD style apps. You can add in simple middleware chaining using a library such as Alice ( https://github.com/justinas/alice ) and for passing around request contexts between them, you can use something like xhandler (…
comment by deepanchor · 2015-11-10 · in Six years of Go -
My personal favorite is alice: https://github.com/justinas/alice It's not very much code (only ~90 lines inc. comments), but I think it establishes a pattern that makes everything very straightforward from authentication to logging to…
comment by wyc · 2015-06-16 · in A Comparison of Go Web Frameworks (2014) -
…app.Use(app.Delay("1s")) // Give the app up to be served http.ListenAndServe(":8080", app) } [1] https://github.com/justinas/alice
comment by anonfunction · 2014-11-23 · in Golang MiddleWare chaining