]> Cypherpunks repositories - gostls13.git/commit
reflect: let StructOf define unexported fields
authorDavid Crawshaw <crawshaw@golang.org>
Tue, 2 Jan 2018 17:43:41 +0000 (09:43 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 28 Sep 2019 00:19:19 +0000 (00:19 +0000)
commit2d1c0332598c77097d53a1c2d564b12dcd644810
treec062862352a3486278483ff33a2087c26ae10219
parent739bf6b929b66ac1715268e269da01c8199f034b
reflect: let StructOf define unexported fields

This was missing from the original StructOf CL because I couldn't
think of a use for it. Now I can: even with types used entirely
by reflect, unexported fields can be set using UnsafeAddr.

Change-Id: I5e7e3d81d16e8817cdd69d85796ce33930ef523b
Reviewed-on: https://go-review.googlesource.com/c/go/+/85661
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
doc/go1.14.html
src/reflect/all_test.go
src/reflect/type.go