gopl.io/README.md

26 lines
1.4 KiB
Markdown
Raw Normal View History

2015-09-25 12:30:59 -07:00
# The Go Programming Language
2015-03-15 19:42:17 -07:00
2015-09-25 12:30:59 -07:00
This repository provides the downloadable example programs
for the book, "The Go Programming Language"; see http://www.gopl.io.
2015-03-15 19:42:17 -07:00
2015-10-07 14:50:01 -07:00
(At present, only `gopl.io/ch1/helloworld` is available. The other
2015-09-25 12:30:59 -07:00
programs will be published as soon as the book is printed.)
2015-10-11 09:56:10 -07:00
All programs are licensed for use under the terms of
Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0).
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.
2015-09-25 12:30:59 -07:00
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.
2015-03-15 19:42:17 -07:00