Dependency Injection and Unit Testing in Golang
What is dependency injection? Dependency injection is a programming technique that makes a class independent of its dependencies. It achieves that by decoupling the usage of an object from its creation. This helps you to follow SOLID’s dependency inversion and single responsibility principles, in order to write a good programme. Let’s refresh our memory with …