使用goproxy解决go get速度慢的问题

可以使用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

 

Leave a Reply

Your email address will not be published. Required fields are marked *