Learning the Go programming language - sample code