cd ~
vim .bash_profile
添加配置内容:
export GOROOT=/usr/local/go
export GOPATH=/golib:/goproject
export GOBIN=~/gobin
export PATH=$PATH:$GOROOT/bin:$GOBIN
保存退出,执行
添加配置内容:
export GOROOT=/usr/local/go
export GOPATH=/golib:/goproject
export GOBIN=~/gobin
export PATH=$PATH:$GOROOT/bin:$GOBIN
保存退出,执行