Susan Harkins (222) [Avatar] Offline
#1
Please list errors you find in the published version of Go in Action here. We'll compile and publish a comprehensive list for everyone's convenience. Thank you!

Susan Harkins
Errata Editor
Fabrizio Cucci (1) [Avatar] Offline
#2
Listing 7.28 Line 23 and 46
"tasks" variable should be "work" according to the Pool definition and the subsequent listings.
Craig Donnelly (1) [Avatar] Offline
#3
Chapter 2 - Page 60 (epub)

In Listing 2.37 there are a number of references to a type "defaultMatch" should be "defaultMatcher" instead.


Chapter 2 - Page 63 (epub)

“The final piece of code in match.go is the Display function that’s called by the main Run function on line 56.”
377046 (1) [Avatar] Offline
#4
In the Foreword Robert Griesemer's name is misspelled "Griesmier"
258236 (1) [Avatar] Offline
#5
page 123

The http.Get function returns a pointer of type http.Request after it successfully communicates with the server. The http.Request type contains a field named Body, which is an interface value of type io.ReadCloser.

-->

The http.Get function returns a pointer of type http.Response after it successfully communicates with the server. The http.Reponse type contains a field named Body, which is an interface value of type io.ReadCloser.
303763 (3) [Avatar] Offline
#6
Typo on page 169:

"This mutex is used to keep all the operations against a Pool value-safe for multigoroutine access."

The hyphen is in the wrong place. Should be:

"This mutex is used to keep all the operations against a Pool value safe for multi-goroutine access."
344140 (1) [Avatar] Offline
#7
Chapter 4 - Page 73:

The diagram for figure 4.15 seems incorrect. It says that the capacity is 5 for newSlice, but the previous page says that the capacity of the array is doubled from its original size, so shouldn't the new capacity be 8?

Also, on page 72 near the bottom of the page, it says "the capacity of the array is doubled", shouldn't it say "the capacity of the slice"?
466383 (1) [Avatar] Offline
#8
On Page 68, in section 4.2.3 Working with slices, the Listing 4.24 is incorrect. Right now it says "Declaring an array using an array literal" when it should say "Declaring a slice using a slice literal".
467919 (1) [Avatar] Offline
#9
On page 96, Listing 5.22 should be
(&bill).changeEmail()

bill is referenced so the method call is compliance with receiver type.