Coding Spirit

一位程序员,比较帅的那种

0%

Go: Error When "go get"

When use go get with VPN, user might get the following errors:

1
x509: certificate is valid for xxxxxxxxxxxxxxxxxxxxxx, not proxy.golang.org

To resolve this error, we can set GOPROXY to direct mode:

1
go env -w GOPROXY=direct