The code from http://tour.golang.org/ as I work through it.
- Docs: https://golang.org/doc/
- Spec: https://golang.org/ref/spec
- Pkgs: https://golang.org/pkg/
Easiest way to get started is:
$ brew install go
Then make sure you have a go path set up:
$ mkdir ~/go
$ export GOPATH=~/go
Make sure to put export GOPATH=~/go
into your .bashrc
.
Then run any one of these files using:
$ go run 01_basics/01_packages.go