Re:Dependency injection in Go with Uber-go/fx
by dcormier on Sunday February 27, 2022 @06:15PM
(#30493842)
I've used this framework. The exceptions being deferred until runtime were really frustrating.
If you really want to use DI in golang, for some reason, wire[1] at least still gives you type safety and compile-time failures.
https://pkg.go.dev/go.uber.org/fx#Provide