2 ms·
Unused imports are definitely not an unsolved problem: as last step after dumbly generating code, run goimports.
by dullgiulio 8y ago
Unused imports are definitely not an unsolved problem: as last step after dumbly generating code, run goimports.
- Vendan 8y agoNever said "unsolved", I said "annoyance". And I tend to write the code to figure it out and do the right thing. My annoyance is with code gens that do https://github.com/golang/protobuf/blob/master/protoc-gen-go/generator/generator.go#L1340-L1343 https://github.com/golang/protobuf/blob/master/protoc-gen-go.... Not even goimports will strip those...