On Mon, Nov 20, 2017 at 5:03 AM, Ally Dale <vipa...@gmail.com> wrote: > > 4. "#/xxx" style reference seems a best solution like "vendor" to fix > local-package reference problem. > Without any hard code "where I am" exists in any go files. > And it will works well together with current global-style, because "#" will > be replaced with <ProjectRoot> by compiler automatically. >
What is a "Project"? This is not a concept that exists in Go (and shouldn't exist). Note, among other things, that GOPATH does not necessarily contain any information about repositories, in case that should be the answer. Especially monorepos might vendor their dependencies in a way that strips this info or makes it invisible to the go tool. Again, it is important to note, that "local packages", or "subpackages" *are not a thing* in Go. Making up a notation for referencing something that doesn't exist seems pretty futile. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.