You can write service structs which depend on service structs similar to spring, and there are libraries which can generate the code that does the wiring for you.
I've always wired my stuff manually in Go though, which is useful if I want to optionally load different subsystems because of some config, etc.
I've always wired my stuff manually in Go though, which is useful if I want to optionally load different subsystems because of some config, etc.