3 ms·
There is more. The dependency injection implementation is based on reflection, using the https://github.com/codegangsta/inject https://github.com/codegangsta/in
by breakpete 13y ago
There is more. The dependency injection implementation is based on reflection, using the https://github.com/codegangsta/inject https://github.com/codegangsta/inject package.
See e.g
https://github.com/codegangsta/martini/blob/master/martini.go#L136 https://github.com/codegangsta/martini/blob/master/martini.g...
https://github.com/codegangsta/martini/blob/master/martini.go#L75 https://github.com/codegangsta/martini/blob/master/martini.g...
Still, the end result is a nice API.