前端之家收集整理的这篇文章主要介绍了
golang快速安装示例,
前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
@H_
404_0@golang下载地址
http://pan.baidu.com/s/1hq1mrDM中下载go1.5.1.linux-amd64.tar.gz
解压到/opt
在~/.bash_profile
文件最后追加下面
内容后重启电脑
PATH=$PATH:/opt/go/bin
GOROOT=/opt/go
GOBIN=$GOROOT/bin
GOPATH=~/gosrc
export PATH
export GOROOT GOBIN GOPATH
然后可以在gosrc中建
文件编译了