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配置镜像站点的主要内容,如果未能解决你的问题,请参考以下文章

在一个 IP 上托管多个 Golang 站点并根据域请求提供服务?

有关vscode安装golang常用工具失败的问题

docker(alpine+golang) 中 hosts 不生效问题解决大全

docker(alpine+golang) 中 hosts 不生效问题解决大全

golang 安装

golang编写的项目,使用alpine制作镜像遇到的一个问题解决