Go get github.com/kotakanbe/go -Problems encountered in CVE dictionary Download


recently installed vuls on centos, which is the reason for QIANG’s frequent situation. Therefore, document several problems encountered and solutions

1.github.com undownloadable issues

before the reference to reprint an article in the link: https://blog.csdn.net/Jesusons/article/details/104267286
at the end of the centos/etc/hosts add assets-cdn.github.com github.global.ssl.fastly.net

will solve the problem

2. Resolve unknown import path “golang.org/x/sys/unix” : unrecognized import path “golang.org/x/sys”

is still QIANG, so you can’t directly visit golang.org. Fortunately, since Go 1.11, the Go module package dependency management tool has been officially supported. As long as you start Go modules, you can download it smoothly.

启用 Go Modules 功能
export GO111MODULE=on
 配置 GOPROXY 环境变量
export GOPROXY=https://goproxy.io

put a download interface after solving these two problems

Read More: