From a0139b46de12854b49913885cccfefdb25c0aed6 Mon Sep 17 00:00:00 2001 From: Alan Donovan Date: Tue, 20 Oct 2015 16:22:54 -0400 Subject: [PATCH] add links to source code, errata --- errata.html | 27 ++++++++++++++ index.html | 103 +++++++++++++++++++++------------------------------- style.css | 30 +++++++++++++++ 3 files changed, 99 insertions(+), 61 deletions(-) create mode 100644 errata.html create mode 100644 style.css diff --git a/errata.html b/errata.html new file mode 100644 index 0000000..f2a02d1 --- /dev/null +++ b/errata.html @@ -0,0 +1,27 @@ + + + + The Go Programming Language - Errata + + + + +

Errata

+

+ p.13: As printed, the gopl.io/ch1/lissajous program + is deterministic, not random. We've added this statement to + the downloadable program so that it prints a pseudo-random image + each time it is run. (Thanks to Randall McPherson.) +

+
rand.Seed(time.Now().UTC().UnixNano())
+ + diff --git a/index.html b/index.html index 2a069b5..4b00210 100644 --- a/index.html +++ b/index.html @@ -1,61 +1,10 @@ - + + - -The Go Programming Language - - + + + @@ -77,8 +53,8 @@ p {
-
-

The Go Programming Language

-

+

The Go Programming Language

+

Alan A. A. Donovan · Brian W. Kernighan
Arriving October 30, 2015 in paperback and e-book
Addison-Wesley; 380pp; ISBN: 978-0134190440
@@ -97,6 +73,8 @@ Addison-Wesley; 380pp; ISBN: 978-0134190440

4. Composite Types

5. Functions

6. Methods

+
+

Source code

7. Interfaces

@@ -107,8 +85,11 @@ Addison-Wesley; 380pp; ISBN: 978-0134190440

12. Reflection

13. Low-Level Programming

Index [PDF]

+
+

Errata

+ +

diff --git a/style.css b/style.css new file mode 100644 index 0000000..1c32b44 --- /dev/null +++ b/style.css @@ -0,0 +1,30 @@ +@font-face { + font-family: MinionPro; + font-weight: normal; + src: url("fonts/MinionPro-Regular.ttf"); +} +@font-face { + font-family: Lato; + font-weight: bold; + src: url("fonts/Lato-Bold.ttf"); +} +@font-face { + font-family: Consolas; + font-weight: normal; + src: url("fonts/Consolas.ttf"); +} +body { + font-family: MinionPro,"Times New Roman"; +} +table { + margin: auto; +} +h1 { + font-family: Lato,Helvetica; + margin-top: 0; + margin-bottom: 0.5em; +} +code, pre { + font-family: Consolas; + font-size: 92%; +}