As they didn't seem to link to it https://github.com/google/wire
I believe Go supports DI via Wire (https://github.com/google/wire).
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.
For a slightly different take on this problem, check out Wire (https://github.com/google/wire).