Hey forum,
Coming from a Java and PHP background I was wondering if the concept of dependency injection framework would be useful to go as well so I started to create github.com/fgrosse/goldi as a toy project just for myself. This was mostly a project for the weekend to continue learning different aspects of go and have some fun with the language.
Now that I have spend quite some time with the framework I still havent decided if this is approach is actually useful. Sometimes it feels really cool to plug whole applications together like I used to in bigger framework from other languages (mostly symfony 2 as biggest influence for me). Then again I dont see any similar approach in other go frameworks which lets me doubt the value of the API again.
So I started to write a web framework with a heavy focus on DI to see where I would end up and how it would feel to create an application with this. So far its pretty cool but I still havent decided if I like the approach better. For smaller apps it is probably overkill but for bigger ones with more code it might be worth it.
Now I would like to know what you think on the topic and the presented packages. Have you used DI yet in any bigger go applications? Why do you think this is not so much of a deal in go? I would be interested in discussing the topic in general but also in getting some feedback on what I implemented. So far everything was pretty much in a vaccuum and I would like to change that at least a bit.
best regards
Friedrich