[Solved] Dial Tcp: Lookup Proxy.golang.org: I/O Timeout

If you get a timeout when trying to install go dependencies, the error may look something like this:

$ go get github.com/aws/aws-sdk-go/aws

go: module github.com/aws/aws-sdk-go/aws: Get "https://proxy.golang.org/github.com/aws/aws-sdk-go/aws/@v/list": dial tcp: lookup proxy.golang.org: i/o timeout

How to Solve the Timeout Issue when installing Go Deps

export GOPROXY=direct

Then re-run your go get command.