Is there any way in Go to do a local import (such as "./package1"
or "../package2"
) in a package that's in your GOPATH? Local imports work outside of your GOPATH, but when they're from a package in GOPATH, the compiler complains. Any way around this? It seems like an annoying restriction that prevents code mobility since moving a package or renaming it requires renaming all of the imports to packages that still maintain the same relative structure, but have also moved.