17 type NilStruct struct {
21 func (n *NilStruct) String() string {
27 fmt.Printf("%t %#v %s %t\n",
30 reflect.ValueOf(n).Kind(),
31 reflect.ValueOf(n).IsNil())
33 fmt.Printf("%t %#v %s %t\n",
34 n2 == nil, // want `this comparison is never true`
36 reflect.ValueOf(n2).Kind(),
37 reflect.ValueOf(n2).IsNil())
38 fmt.Println(n2.String())