Closed as not planned
Closed as not planned
Description
What version of Go are you using (go version
)?
$ go version go version go1.14.7 windows/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (go env
)?
go env
Output
$ go env //Has nothing to do with env
What did you do?
Now I usually modify the go.mod
file.
Then modify some imports one by one.
What did you expect to see?
Sometimes a project may permanently move to a new address.
I hope go mod
has any way to directly migrate my project to the new address.
Possible comannd like:
//I created a new project,use:
go mod init github.com/nameA/projectA
//When I need to migrate to a new address like nameB/projectB, to use:
go mod change github.com/nameA/projectA github.com/nameB/projectB
Then all the imports of the project point to the new address.
What did you see instead?
Now I don't seem to see a similar function.
If there is no such feature, I hope it can be added.
If there is already have a similar functions, I hope to get some help.