Merge pull request #823 from appleboy/patch-1

fix GOPATH variable
This commit is contained in:
astaxie
2017-04-12 10:11:50 +08:00
committed by GitHub

View File

@@ -155,7 +155,7 @@ sudo tar -xzf go1.8.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 (可选设置)
```
或者使用:
```sh
@@ -166,7 +166,7 @@ sudo vim /etc/profile
export GOROOT=/usr/local/go
export GOBIN=$GOROOT/bin
export PATH=$PATH:$GOBIN
export GOPATH=HOME/gopath (可选设置)
export GOPATH=$HOME/gopath (可选设置)
```
### homebrew