This is an overview of the go programming language for developers familiar with either Python, Java or C.
To view the slides you'll need go installed, and then you'll need the present
command. This can be obtained by running go install golang.org/x/tools/cmd/present
.
To launch the slides run ./run.sh
in a checkout of this repository and visit: http://localhost:3999/class.slide.
Make sure you have git installed via Xcode.
Download the binary .tar.gz (not the .pkg) from golang.org/dl: https://golang.org/dl/go1.15.1.darwin-amd64.tar.gz
Extract into ~/goroot so GOROOT and GOPATH don't conflict:
tar xzvf go1.15.1.darwin-amd64.tar.gz
mv go ~/goroot
Add to your PATH in ~/.bash_profile
:
PATH="${HOME}/goroot/bin:${HOME}/go/bin:${PATH}"
export PATH
Reload your ~/.bash_profile
:
source ~/.bash_profile
Make sure you're running the expected version of Go:
which go
go version