4 ms·
It's not part of Go-the-language. It's part of the distribution of the most popular (ok, only) implementation of that language.
by skj 12y ago
It'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.