Hacker GitHub

← All repos

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

Mentions per year 3 mentions · busiest year 2015 (2)
20082026
  1. …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
  2. 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…
  3. …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