gocraft/web
View on GitHub ↗ ★ 1,523 Go
Go Router + Middleware. Your Contexts.
5 mentions on Hacker News by 4 people: 0 stories, 5 comments · first 2013-12-08 · latest 2018-07-14
20082026
-
…its basically a dead project, it works fine and is minimal enough to not need any changes. [0] https://github.com/gocraft/web
comment by AdamJacobMuller · 2018-07-14 · in Ask HN: What is the current state of web frameworks in Golang? -
…to wrap types coming in and out), as the alternative is to rely on structs + methods (ala https://github.com/gocraft/web ) which can be a little unwieldy. Horses for courses, as they say! [1]: https://gist.github.com/elithrar/21cb76b8e29398…
comment by elithrar · 2014-05-22 · in A Comparison of Go Web Frameworks -
…The only simple, type-safe solution I've seen to this problem is Gocraft's web ( https://github.com/gocraft/web ), which I discovered long after Martini, and is much faster. So far of the frameworks that have been developed because of the
comment by nemothekid · 2014-05-20 · in Thoughts on Martini – Introducing Negroni -
…type-assert your values from this map if you want to use them. I wrote a library a while ago ( http://www.github.com/gocraft/web ) that uses reflection so that your contexts can be strongly typed. Martini offers a similar approach.
comment by cypriss · 2014-04-22 · in Goji: a web microframework for Go -
I believe this is solved with gocraft/web: https://github.com/gocraft/web The middleware would be, per the example there: func (c *YourContext) UserRequired(rw web.ResponseWriter, r *web.Request, next web.NextMiddlewareFunc) { user :=…
comment by cypriss · 2013-12-08 · in Writing HTTP Middleware in Go