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

可以使用go proxy:https://goproxy.io/zh/

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
export GO111MODULE=on
export GOPROXY=https://goproxy.io,direct
export GO111MODULE=on export GOPROXY=https://goproxy.io,direct
export GO111MODULE=on
export GOPROXY=https://goproxy.io,direct

然后执行go get

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
go mod init github.com/my/repo
go get github.com/go-redis/redis/v8
go mod init github.com/my/repo go get github.com/go-redis/redis/v8
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 *