go get
cannot load github.com/google/uuid: module github.com/google/uuid: Get https://proxy.golang.org/github.com/google/uuid/@v/list: dial tcp 216.58.200.49:443: i/o timeout
go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/Users/songguochuxing/Library/Caches/go-build"
GOENV="/Users/songguochuxing/Library/Application Support/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/songguochuxing/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/songguochuxing/Desktop/config/gocode/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/g6/nwtjhdk15fj5f_y1jz1hp9t40000gn/T/go-build459713618=/tmp/go-build -gno-record-gcc-switches -fno-common"
设置
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
解决