Open hhstore opened 5 years ago
# 更新源:
brew update
# 初次安装:
brew install go
# 版本更新:
brew upgrade go
# 清理已安装的旧版本:
brew cleanup
You may wish to add the GOROOT-based install location to your PATH:
export PATH=$PATH:/usr/local/opt/go/libexec/bin
==> Summary
🍺 /usr/local/Cellar/go/1.11: 9,273 files, 403.9MB
#
go version
#
go env
#-------------------------------
# set GOPATH:
#-------------------------------
# go:
export PATH=$PATH:/usr/local/opt/go/libexec/bin
brew install protobuf
use docker-compose
https://github.com/hashicorp/consul/blob/master/demo/docker-compose-cluster/docker-compose.yml
docker pull consul
# run:
ref:
中文文档: https://go-zh.org/
安装: https://go-zh.org/doc/install