TLDR Web Dev · OPINIONS & ADVICE

YOU PROBABLY DON'T NEED A DI FRAMEWORK

rednafi.com9 min read

Summary from the TLDR Web Dev newsletter

Manual dependency wiring is better than using Dependency Injection (DI) frameworks in Go. DI, at its core, is simply passing dependencies into constructors rather than creating them internally. As a result, DI frameworks can introduce complexity by relying on reflection or code generation, leading to runtime errors or difficult debugging.