Hacker News new | ask | show | jobs
by qaq 867 days ago
You can use Dependency Injection to solve this issue but in my view the added complexity is not really worth it.
1 comments

Is this a Go thing? In C# land this is trivial.
There are Go DI frameworks overall DI is not that popular in Go community.