]> Cypherpunks repositories - gostls13.git/commit
cmd/doc: handle embedded fields properly
authorRob Pike <r@golang.org>
Fri, 19 Feb 2016 05:36:03 +0000 (16:36 +1100)
committerRob Pike <r@golang.org>
Mon, 22 Feb 2016 23:40:02 +0000 (23:40 +0000)
commit108218453a2cd26920f9be899b4a5102e80007a8
tree0627a1d54e19e8a997e200e8fa5a92edbd6e75bb
parenta4b833940da77449afd95dc95f8596bae4fa1621
cmd/doc: handle embedded fields properly

The structure of the code meant that an embedded field was never
checked for export status. We need to check the name of the type,
which is either of type T or type *T, and T might be unexported.

Fixes #14356.

Change-Id: I56f468e9b8ae67e9ed7509ed0b91d860507baed2
Reviewed-on: https://go-review.googlesource.com/19701
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/doc/doc_test.go
src/cmd/doc/pkg.go
src/cmd/doc/testdata/pkg.go