linux 下环境搭建相当简单方便,只要解压缩GO 的压缩包即可
tar xvf go1.10.3.linux-amd64.tar.gz
GOROOT就是go的安装路径,在~/.bash_profile或者/etc/profile中添加
export GOROOT=/home/liusenlin/go
export PATH=$PATH:$GOROOT/bin
之后执行source /etc/profile
或者放在~/.bash_profile
linux 下环境搭建相当简单方便,只要解压缩GO 的压缩包即可
tar xvf go1.10.3.linux-amd64.tar.gz
GOROOT就是go的安装路径,在~/.bash_profile或者/etc/profile中添加
export GOROOT=/home/liusenlin/go
export PATH=$PATH:$GOROOT/bin
之后执行source /etc/profile
或者放在~/.bash_profile