]> Cypherpunks repositories - gostls13.git/commit
reflect: unexported fields are tied to a package
authorDavid Crawshaw <crawshaw@golang.org>
Fri, 4 Nov 2016 22:22:06 +0000 (18:22 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 10 Nov 2016 14:06:23 +0000 (14:06 +0000)
commit8d0c105407d235c85a163c0cda5bda86e5219c36
treee56981d92136ab31896f529409d679cc59b8a745
parent9e2c3f4c7e78b01d635e16287789913d02807569
reflect: unexported fields are tied to a package

An unexported field of a struct is not visible outside of the package
that defines it, so the package path is implicitly part of the
definition of any struct with an unexported field.

Change-Id: I17c6aac822bd0c24188ab8ba1cc406d6b5d82771
Reviewed-on: https://go-review.googlesource.com/32820
Run-TryBot: David Crawshaw <crawshaw@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/reflect/all_test.go
src/reflect/export_test.go
src/reflect/type.go