All notes
Golang

Mirror

Install x/crypto


ph
#----- Problem:
go get -u -v golang.org/x/crypto/...
# Fetching https://golang.org/x/crypto?go-get=1
# https fetch failed: Get https://golang.org/x/crypto?go-get=1: dial tcp 216.239.37.1:443: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

#----- Solution:
mkdir %GOPATH%\src\golang.org\x
cd %GOPATH%\src\golang.org\x
git clone https://github.com/golang/crypto.git

# crypto depends on sys/cpu and sys/windows
git clone https://github.com/golang/sys.git
go install golang.org/x/sys/...
go install golang.org/x/crypto/...

GOPATH

Homebrew

It defaults to HOME/go on macOS (nee OS X) - e.g. /Users/matt/go/.