I think you meant to say $HOME
This commit is contained in:
Spellchaser
2017-10-10 11:07:59 -04:00
committed by GitHub
parent 925f812d59
commit b8cbaa6939

View File

@@ -119,7 +119,7 @@ sudo tar -xzf go1.8.3.linux-amd64.tar.gz -C /usr/local
export GOROOT=/usr/local/go
export GOBIN=$GOROOT/bin
export PATH=$PATH:$GOBIN
export GOPATH=HOME/gopath
export GOPATH=$HOME/gopath
```
Starting from go 1.8, The GOPATH environment variable now has a default value if it is unset. It defaults to $HOME/go on Unix and %USERPROFILE%/go on Windows.
### Homebrew