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.
pull/1058/head
Tanzeeb Khalili 2017-10-14 02:13:55 -04:00 committed by GitHub
parent 9f02aa5028
commit 0cef421c97
1 changed files with 1 additions and 1 deletions

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"