type Address … type Person … // GoString makes Person satisfy the GoStringer interface. // The return value is valid Go code that can be used to reproduce the Person struct. func (p Person) GoString() string { … } func ExampleGoStringer() { … }
type Address … type Person … // GoString makes Person satisfy the GoStringer interface. // The return value is valid Go code that can be used to reproduce the Person struct. func (p Person) GoString() string { … } func ExampleGoStringer() { … }