Dependency Injection for Go with facebookgo-inject
Setting up a larger application using dependency injection always requires us developers to set up our application’s object graph. Programming in Go there is a library that eases this task for us, offering a reflect based injector to set up the graph in a few steps, named facebookgo-inject. In the following article I’d like to demonstrate dependency injection using this library for a small sample application. Figure 1. Go dependency injection with facebookgo...