go env GOPATH
/Users/yuma/go
echo $GOPATH
printenv GOPATH
It is empty when you have not GOPATH in env.
- go version go1.10.3 darwin/amd64
go env GOPATH
/Users/yuma/go
echo $GOPATH
printenv GOPATH
It is empty when you have not GOPATH in env.