Skip to content

Commit 1c664e7

Browse files
committed
GOSUMDB中国站点
1 parent 43a3234 commit 1c664e7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

zh-cn/Modules/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,22 @@
66

77
> 1、Go1.11及以后版本才能使用。
88
2、Go1.11需要设置环境变量 GO111MODULE 为 on(新特性开关,按照Go语言惯例,mod首次在go1.11版本中使用,go1.13及以后版本这个设置可以不用了)。
9-
3、可以设置模块代理:设置环境变量 GOPROXY 的值为代理网址,目前可用的模块公共代理网址有:
9+
3、可以设置模块代理:设置环境变量 GOPROXY 的值为代理网址。
10+
目前可用的模块公共代理网址有:
11+
(注:Go语言官方已推出官方模块代理 <https://proxy.golang.org> 但目前国内处于被墙状态。)
1012
<https://goproxy.io>
1113
<https://goproxy.cn>
1214
<https://mirrors.aliyun.com/goproxy/>
1315
<https://mirrors.cloud.tencent.com/go/>
1416
<https://goproxy.baidu.com/>
1517
<https://athens.azurefd.net>
1618
<https://gocenter.io>
17-
(注:Go语言官方已推出官方模块代理 <https://proxy.golang.org> 但目前国内处于被墙状态。)
1819
或者自建模块代理工具:
1920
<https://github.com/goproxyio/goproxy>
2021
<https://github.com/goproxy/goproxy>
2122
<https://github.com/gomods/athens>
23+
24+
注:校验数据库GOSUMDB可用Go语言官方运营的中国站点`sum.golang.google.cn`
2225

2326
mod是模块英文modules的简写。
2427

0 commit comments

Comments
 (0)