Comment on Dependency Injection with GoparentComments−fishnchips12yI believe there are other ways:http://commandcenter.blogspot.com/2014/01/self-referential-f...And you should probably avoid situations where you suddenly need config objects in 'random places'. This could be a symptom of chaotic API design. But then again, whatever works for you.
Comments
I believe there are other ways:
http://commandcenter.blogspot.com/2014/01/self-referential-f...
And you should probably avoid situations where you suddenly need config objects in 'random places'. This could be a symptom of chaotic API design. But then again, whatever works for you.