golang配置镜像站点

In Linux or macOS, you can execute the below commands.

Bash /

# Enable the go modules feature
export GO111MODULE=on
# Set the GOPROXY environment variable
export GOPROXY=https://goproxy.io

Or, write it into the .bashrc or .bash_profile file.

 

原文: https://goproxy.io/

posted @ 2019-08-17 13:05  jiftle  阅读(3371)  评论(0编辑  收藏  举报