Home go语言学习笔记
Post
Cancel

go语言学习笔记

环境配置,这里把$GOPATH/bin也加入

1
2
3
4
5
6
7
cd /data/dev
wget http://www.golangtc.com/static/go/1.7/go1.7.linux-amd64.tar.gz
tar -zxvf go1.7.linux-amd64.tar.gz
export GOROOT=/data/dev/go
export GOPATH=/data/dev/GoProj
export PATH=$PATH:$GOROOT/bin
export PATH=$PATH:$GOPATH/bin
This post is licensed under CC BY 4.0 by the author.