可以使用go proxy:https://goproxy.io/zh/
export GO111MODULE=on
export GOPROXY=https://goproxy.io,direct
然后执行go get
go mod init github.com/my/repo
go get github.com/go-redis/redis/v8
[......]
可以使用go proxy:https://goproxy.io/zh/
export GO111MODULE=on
export GOPROXY=https://goproxy.io,direct
然后执行go get
go mod init github.com/my/repo
go get github.com/go-redis/redis/v8
[......]