golang配置镜像站点

Posted jiftle

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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/

以上是关于golang配置镜像站点的主要内容,如果未能解决你的问题,请参考以下文章