Skip to content

Latest commit

 

History

History
20 lines (10 loc) · 603 Bytes

errata.md

File metadata and controls

20 lines (10 loc) · 603 Bytes

Errata for Pro Go

This file contains errors that are likely to prevent the code examples from working as described in ths book. See this file for small mistakes that I intend to correct in the next edition.


Chapter 33

On Page 909, the getAnonymousFieldMethods function is shown with the wrong parameters and result. This statement:

func getAnonymousFieldMethods(target []reflect.Type) reflect.Method {

should be:

func getAnonymousFieldMethods(target reflect.Type) []reflect.Method {

(Thanks to Yaroslav Lazarev for reporting this problem)