Golang静态强类型编译型并发型垃圾回收功能

1.下载Go语言安装包https://storage.googleapis.com/golang/go1.7.1.linux-amd64.tar.gz
2.在命令行执行如下命令:
sudo tar -C /usr/local -xzf go1.7.1.linux-amd64.tar.gz
3.配置环境变量
//创建GOPATH文件夹
mkdir -p /home/obc/chaincode
vi ~/.profile
//在.profile文件中添加如下两行代码
export PATH=$PATH:/usr/local/go/bin
export GOPATH=/home/obc/chaincode
//保存退出 编译
source ~/.profile
4.创建相应的文件夹
cd $GOPATH
//创建相应测试文件所在文件夹,user为用户自己的github id
mkdir -p src/github.com/user/hello
cd src/github.com/user/hello
//编写测试程序
vim hello.go
//编译测试程序
go install github.com/user/hello
//执行
$GOPATH/bin/hello
维码进行关注,更多干货等着你 !
