Go has vanity URLs for the first, and go module files have replace statements to redirect imports to other names or local directories.
In theory, maybe. In practice, I haven't seen vanity urls used very much in go projects, and for it to completely solve the problem you need to use the vanity url from the very beginning and you can't ever change the vanity url. It also requires you to have your own domain.