|
|
|
|
|
by ferdowsi
1569 days ago
|
|
Not just that, but I don't understand why users would be so eager to kill type safety in their applications. If i'm understanding, these injection methods are totally type-unsafe and construction errors are deferred until runtime? https://pkg.go.dev/go.uber.org/fx#Provide |
|
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.
1. https://github.com/google/wire