3 ms·
Both Eclipse and IntelliJ have supported cleaning up imports and running style tools on every save for years. I have no idea why this would be a core part of a
by threeseed 12y ago
Both Eclipse and IntelliJ have supported cleaning up imports and running style tools on every save for years.
I have no idea why this would be a core part of any language.
- skj 12y agoIt's not part of Go-the-language. It's part of the distribution of the most popular (ok, only) implementation of that language.
- solipsism 12y agoNot true. It is illegal for a package to import itself, directly or indirectly, or to directly import a package without referring to any of its exported identifiers. - https://golang.org/ref/spec https://golang.org/ref/spec
- skj 12y agoWhat? I'm saying that the tooling that helps manage import paths in the way you want is not part of Go-the-language. The language restriction against unused imports certainly is.