my solutions to the problems in The Go Programming language.
https://gopl.io
7cc6a2956e
Change-Id: I54d6751b9d56cab2ec9926a086f9d0eb08a19596 |
||
---|---|---|
ch1 | ||
ch2 | ||
ch3 | ||
ch4 | ||
ch5 | ||
ch6 | ||
ch7 | ||
ch8 | ||
ch9 | ||
ch10 | ||
ch11 | ||
ch12 | ||
ch13 | ||
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.
These example programs are 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.