GOROOT&GOPATH设置

GOROOT&GOPATH设置

vim ~/.bash_profile

export GOROOT=/usr/local/go
export PATH=$PATH:$GOROOT/bin
export GOPATH=/golang/code 
export PATH=$PATH:$GOPATH/bin

source ~/.bash_profile
posted @ 2019-08-25 09:32  输诚  阅读(2371)  评论(0编辑  收藏  举报