I use go get golang.org/dl/goxxx and goxxx download to update the go SDK of Windows platform, but it is installed on disk C. how to modify the installation path?
go get golang.org/dl/goxxx
goxxx download
If you set up the project to use go.mod the the replace directive can alter the path from a remote repo to a local path
See https://golang.org/ref/mod#go-mod-file-replace for full details
1.4m articles
1.4m replys
5 comments
56.9k users