Skip to content

Commit bdf8fb4

Browse files
authored
Merge pull request astaxie#823 from appleboy/patch-1
fix GOPATH variable
2 parents c4dd92c + 64868b3 commit bdf8fb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

zh/01.1.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ sudo tar -xzf go1.8.linux-amd64.tar.gz -C /usr/local
155155
export GOROOT=/usr/local/go
156156
export GOBIN=$GOROOT/bin
157157
export PATH=$PATH:$GOBIN
158-
export GOPATH=HOME/gopath (可选设置)
158+
export GOPATH=$HOME/gopath (可选设置)
159159
```
160160
或者使用:
161161
```sh
@@ -166,7 +166,7 @@ sudo vim /etc/profile
166166
export GOROOT=/usr/local/go
167167
export GOBIN=$GOROOT/bin
168168
export PATH=$PATH:$GOBIN
169-
export GOPATH=HOME/gopath (可选设置)
169+
export GOPATH=$HOME/gopath (可选设置)
170170
```
171171

172172
### homebrew

0 commit comments

Comments
 (0)