This repository contains code & comments from the official A Tour of Go.
As long as you have the Go environment set up on your machine, you can run each file as so:
go run filename.go. The files are just arranged individually, so if you import the repo into your GOPATH src/ folder, linters may complain that you have more than one
main() func. Just ignore it and compile the file individually.