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