Re: [go-nuts] Printing unexported fields

2017-10-07 Thread Ian Lance Taylor
On Sat, Oct 7, 2017 at 2:19 PM, wrote: > > fmt.Printf appears to access unexported fields fine, how does this work? In > this example, the call to Printf finds the field name of 'a' and shows the > value. It uses the reflect package (https://golang.org/pkg/reflect), which

[go-nuts] Printing unexported fields

2017-10-07 Thread uluyol0
fmt.Printf appears to access unexported fields fine, how does this work? In this example , the call to Printf finds the field name of 'a' and shows the value. -- You received this message because you are subscribed to the Google Groups "golang-nuts"