Go Dependency Injection in 150 lines
github.com
github.com
Some days ago I had some thoughts on dependency injection and made a tiny library as well, just for reference: https://github.com/go-tk/di
I'm not here to defend DI if you don't like it, but otherwise happy to answer questions about it.
Check out the test file for some kind of example on how to use it.