← Back to blog

Dependency Injection in Go Is Just Passing In What You Need

No framework, no container, no reflection scanning your struct fields at startup: Go's version of dependency injection is a constructor argument, and interfaces are what make that argument swappable.

Written by Denys Dovzhenko