开始学一门新的语言,开发环境需要好好配置!

GOLANG

环境变量

export GOROOT=/usr/local/go
#export GOBIN=$GOROOT/bin
export GOPKG=$GOROOT/pkg/tool/linux_amd64
# 目标平台,可能是darwin freebsd linux windows
export GOOS=linux
# 目标平台的计算架构
export GOARCH=amd64
export PATH=$PATH:$GOBIN:$GOPKG
export GOPATH=$HOME/golang/lib:GOPATH=$HOME/golang/gpc2p

编辑器

atom

go-plus --- get missing tools

GOPATH

apm config set https-proxy http://10.16.13.18:8080

代理

vim ~/.atom/.apmrc

http-proxy=http://10.16.13.18:8080
https-proxy=http://10.16.13.18:8080
strict-ssl=false

报错找不到golang.org/x/tools

git clone https://github.com/golang/tools golang.org/x/tools

标签: golang

添加新评论