From b0f318b662a3db61d3635bb714690721e5f4672c Mon Sep 17 00:00:00 2001
From: Alan Donovan
- p.9, ¶2: for "can compared", read "can be compared".
+ p.9, ¶2: For "can compared", read "can be compared".
(Thanks to Antonio Macías Ojeda, 2015-10-22.
Corrected in the second printing.)
Errata
- p.52, ¶2: for "an synonym", read "a synonym", twice. + p.52, ¶2: For "an synonym", read "a synonym", twice. (Corrected in the second printing.)
- p.68: the table of UTF-8 encodings is missing a bit from each first byte. + p.68: The table of UTF-8 encodings is missing a bit from each first byte. The corrected table is shown below. (Thanks to Akshay Kumar, 2015-11-02. - Corrected in the Second printing.) + Corrected in the second printing.)
@@ -70,13 +70,18 @@ pre {
11110xxx 10xxxxxx 10xxxxxx 10xxxxxx 65536−0x10ffff (other values unused)
- p.74: the comment in gopl.io/ch3/printints should say
+ p.73, ¶1: For "a exercise", read "an exercise".
+ (Thanks to vrajmohan, 2015-12-28.)
+
+ p.74: The comment in gopl.io/ch3/printints should say
fmt.Sprint, not fmt.Sprintf.
(Corrected in the second printing.)
- p.76: the comment // "time.Duration 5ms0s should have
+ p.76: The comment // "time.Duration 5ms0s should have
a closing double-quotation mark.
(Corrected in the second printing.)
- p.132, code display following ¶3: the final comment
+ p.132, code display following ¶3: The final comment
should read:
// compile error: can't assign func(int, int) int to func(int) int
(Thanks to Toni Suter, 2015-11-21.)
- p.166, ¶2: for "way", read "a way". + p.166, ¶2: For "way", read "a way".
- p.200, TestEval function: the format string in the final call to
+ p.200, TestEval function: The format string in the final call to
t.Errorf should format test.env with %v,
not %s.
(Thanks to Mitsuteru Sawa, 2015-12-07.)
- p.362: the gopl.io/ch13/bzip program
+ p.362: The gopl.io/ch13/bzip program
does not comply with the
proposed rules for passing pointers between Go and C code
because the C function bz2compress temporarily stores a Go
From 7c2d57b49156a02adda94a960964d371a9de7a83 Mon Sep 17 00:00:00 2001
From: Alan Donovan
+ p.347, Exercise 12.8: for "like json.Marshal",
+ read "like json.Unmarshal".
+ (Thanks to chai2010, 2016-01-01.)
+
p.362: The gopl.io/ch13/bzip program
does not comply with the
From ce556fed9150b7dedfc00f013ae28c9a16503678 Mon Sep 17 00:00:00 2001
From: Alan Donovan
+ p.48: f.ReadByte() serves as an
+ example of a reference to f, but *os.File has no such
+ method. For ReadByte, read Stat, four times.
+ (Thanks to Peter Olsen, 2015-01-06.)
+
p.52, ¶2: For "an synonym", read "a synonym", twice.
(Corrected in the second printing.)
From c75d53a12b272135296a25e9252e4b00c257eb76 Mon Sep 17 00:00:00 2001
From: Alan Donovan
p.48: f.ReadByte() serves as an
example of a reference to f, but *os.File has no such
- method. For ReadByte, read Stat, four times.
+ method. For "ReadByte", read "Stat", four times.
(Thanks to Peter Olsen, 2015-01-06.)
+ p.222. Exercise 8.1: the port numbers for London
+ and Tokyo should be swapped in the final command to
+ match the earlier commands.
+ (Thanks to Kiyoshi Kamishima, 2016-01-08.)
+
p.347, Exercise 12.8: for "like json.Marshal",
read "like json.Unmarshal".