Change default $GOPATH to $HOME/go

As of Go v1.8, $HOME/go is the default $GOPATH. See https://github.com/golang/go/issues/17262 for the discussion.
This commit is contained in:
Tanzeeb Khalili
2017-10-14 02:13:55 -04:00
committed by GitHub
parent 9f02aa5028
commit 0cef421c97

View File

@@ -7,5 +7,5 @@ about-plugin 'go environment variables & path configuration'
export GOROOT=${GOROOT:-$(go env | grep GOROOT | cut -d'"' -f2)}
pathmunge "${GOROOT}/bin"
export GOPATH=${GOPATH:-"$HOME/.go"}
export GOPATH=${GOPATH:-"$HOME/go"}
pathmunge "${GOPATH}/bin"