my solutions to the problems in The Go Programming language. https://gopl.io
Go to file
Alan Donovan ac98435efe Merge branch 'master' of https://github.com/adonovan/booksite 2015-10-11 12:56:15 -04:00
ch1/helloworld ch1: rename hello 2015-06-16 13:04:43 -04:00
ch5/findlinks1 ch5: add findlinks1 to test external dependencies 2015-09-24 09:32:47 -04:00
ch13 ch13: add bzip 2015-09-29 15:04:07 -04:00
README.md Merge branch 'master' of https://github.com/adonovan/booksite 2015-10-11 12:56:15 -04:00

README.md

The Go Programming Language

This repository provides the downloadable example programs for the book, "The Go Programming Language"; see http://www.gopl.io.

(At present, only gopl.io/ch1/helloworld is available. The other programs will be published as soon as the book is printed.)

All programs are licensed for use under the terms of Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0). Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

You can download, build, and run the programs with the following commands:

$ export GOPATH=$HOME/gobook            # choose workspace directory
$ go get gopl.io/ch1/helloworld         # fetch, build, install
$ $GOPATH/bin/helloworld                # run
Hello, 世界

Many of the programs contain comments of the form //!+ and //!-. These comments bracket the parts of the programs that are excerpted in the book; you can safely ignore them. In a few cases, programs have been reformatted in an unnatural way so that they can be presented in stages in the book.