Learning Go

Some resources I’ve found incredibly useful in learning Go, aka Golang.

Aug 10, 2019 2 min read

Ready to learn Go?

Start exploring Go by writing tests with Learn Go with Tests.

Above all, I’d recommend the The Go Programming Language book. It was published in 2015, but thanks to the stability of the Go language, this is still the best book for picking up Go.

Watch

Read and do

Golang news and updates

Cheatsheets

Practice

Podcasts and video series

Linting

Development

export GOPATH=~/go
export PATH="$GOPATH/bin:$PATH"
eval "$(gimme 1.12.7)"
  • Versions of Go
    • Use gimme for easy version switching: brew install gimme; eval "$(gimme 1.12.7)"
    • Add the code above to your shell init script: ~/.bash_profile, ~/.profile, etc
  • Use Go modules (read this wiki)
    • You can either:
      • A: git clone the code outside your GOPATH (ie, next to your other code) to use go modules automatically (recommended)
      • B: set GO111MODULE=on and keep your Go code in your GOPATH

IDE Tools

And finally… the Go Gopher!

Gophers

5 years

Go Gopher

Read more posts like this in the Software Engineering Toolbox collection.