File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 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
2326mod是模块英文modules的简写。
2427
You can’t perform that action at this time.
0 commit comments