1.golang 语言环境安装
Mac下安装go 基于Homerbrew安装,方便管理跟升级 brew install go 配置路径 vim ~/.bash_profile #export PATH export GOROOT=/usr/local/Cellar/go/1.8.1/libexec export GOBIN=$GOROOT/bin export GOPATH=/Users/antic/www/go export PATH=$PATH:$GOBIN 让配置立即生效 source .bash_profile 查看 go env antic:~ antic$ go env GOARCH="amd64" GOBIN="/usr/local/Cellar/go/1.8.1/libexec/bin" GOEXE="" ...阅读全文