由于需要翻墙 不好找 因此记下地址,以备日后之所需
https://storage.googleapis.com/golang
mac 安装golang
通过
brew search go
➜ test brew search go
==> Formulae
algol68g go@1.4 gomplate goto mongodb@3.0
arangodb go@1.8 goocanvas gource mongodb@3.2
argon2 go@1.9 goofys govendor mongodb@3.4
bogofilter goaccess google-authenticator-libpam gowsdl mongodb@3.6
cargo-completion goad google-benchmark gox mongoose
certigo gobby google-java-format gst-plugins-good pango
cgoban gobject-introspection google-sparsehash gx-go pangomm
clingo gobuster google-sql-tool hugo percona-server-mongodb
django-completion gocr googler jfrog-cli-go pygobject
forego gocryptfs goolabs jpegoptim pygobject3
fuego godep goose lego ringojs
gnu-go goenv gopass lgogdownloader spaceinvaders-go
go ✔ gofabric8 gor libgosu spigot
go-bindata goffice goreleaser mongo-c-driver svgo
go-jira gollum gost mongo-cxx-driver wego
go-statik golo gosu mongo-orchestration wireguard-go
go@1.10 ✔ gom gotags mongodb write-good
安装
➜ test brew install go@1.10
==> Downloading https://homebrew.bintray.com/bottles/go@1.10-1.10.4.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring go@1.10--1.10.4.sierra.bottle.tar.gz
==> Caveats
A valid GOPATH is required to use the `go get` command.
If $GOPATH is not specified, $HOME/go will be used by default:
https://golang.org/doc/code.html#GOPATH
You may wish to add the GOROOT-based install location to your PATH:
export PATH=$PATH:/usr/local/opt/go@1.10/libexec/bin
go@1.10 is keg-only, which means it was not symlinked into /usr/local,
because this is an alternate version of another formula.
If you need to have go@1.10 first in your PATH run:
echo 'export PATH="/usr/local/opt/go@1.10/bin:$PATH"' >> ~/.zshrc
==> Summary
�� /usr/local/Cellar/go@1.10/1.10.4: 8,188 files, 336.9MB
版权声明:本文为qq_21816375原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。