Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
proposal: cmd/go: Reserve several simple package path prefix to the user, never use it in the standard library #34592
From #34068 (comment)
That's a strange rule for me.And it is not compile error, so I do not notice that since now.
So I suggest golang leave several
suggest for several
I think GOPATH/src/vendor should also reserve to the user, there are several projects that can not compile because of this (#34068), but it has already used in go1.13
The GOPATH/src/internal do not need reserve to the user, as the private project is already
I doubt the standard library is actually going to add a
@bronze1man, note that in module mode, the module path does not need to appear in the file tree at all, and you can refer to paths within that module using the prefix
So the benefit in terms of typing saved is already (mostly) achieved simply by switching to modules.