On Sat, Oct 7, 2017 at 2:19 PM,  <uluy...@gmail.com> 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
provides read-only access to unexported fields.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to