Purely for awareness, I’d like to highlight that this undated blog post is quite old; I believe I first saw this at least two years ago.
With that in mind, some of the advice and practises presented may be out of date.
The proposed recommended installation through brew (on OSX of course) isn’t the best in my experience since it tends to lag behind the downloadable packages from golang.org, for example, and GOPATH now has a default for a new install.
To get started with an installation, I recommend the official docs: https://golang.org/doc/install
Followed by : https://golang.org/doc/code.html#Workspaces
Using Brew since Go 1.3, never had any issue. In fact it’s the smoothest and easiest way to install and update the Go.
It’s true that it’s no longer necessary to set a GOPATH, but I don’t know where this FUD about Go via Homebrew got started. It remains the easiest way to install Go on Mac, is reliably updated within an hour or two of official releases, and has no substantial differences from installing from source.
“is reliably updated within an hour or two of official releases”
This simply is not true.
Correcting myself on this point. based on the latest release:
https://blog.golang.org/go1.8 - Feb 16th
https://github.com/Homebrew/homebrew-core/commit/154094514f3ac8ddf969e4593dbe41989a7396b5#Formula/go.rb - Feb 16th
This has reliably been true for the last 2 or 3 releases. Prior to that, I don’t recall.
Thank you. For what it’s worth, your article was very helpful to me when I first read it and was a new Gopher. :-)
Please feel free to send a PR with minor changes on https://github.com/howistart/howistart-hakyll/blob/master/posts/go/1/index.md. As long as @peterbourgon (or the respective author of the original post) signs off on them I merge them.
I really do need to get he date into the actual page… I’ll try to remember to do that today finally.