codegangsta/inject
View on GitHub ↗ ★ 977 Go
Dependency injection for go
3 mentions on Hacker News by 3 people: 0 stories, 3 comments · first 2013-11-14 · latest 2014-05-20
20082026
-
…products do). Yes, Martini is non-idiomatic magic. Specifically codegangsta's 200-line inject ( https://github.com/codegangsta/inject ) library is most of Martini's magic. I think inject is rather clever (I've begin using it other…
comment by nemothekid · 2014-05-20 · in Thoughts on Martini – Introducing Negroni -
…be kept clean on the number of dependencies it pulls in. The only external dependency on Martini is https://github.com/codegangsta/inject which I maintain anyway :)
comment by codegangsta · 2013-11-14 · in Martini: Classy web development in Go -
There is more. The dependency injection implementation is based on reflection, using the https://github.com/codegangsta/inject package. See e.g https://github.com/codegangsta/martini/blob/master/martini.g...…
comment by breakpete · 2013-11-14 · in Martini: Classy web development in Go