package dummy
type (
private struct {
z *int
}
Public struct {
p *int
}
Sample struct {
*Public
*private
x *int
}
)
when inspected with "go doc Sample" yields:
type Sample struct {
*Public
*private
// Has unexported fields.
}
where *private should not appear at all.
The text was updated successfully, but these errors were encountered:
minux
changed the title
Go doc: a private field may be listed even when only public fields ought to be.
cmd/doc: a private field may be listed even when only public fields ought to be.
Feb 17, 2016
The following artificial example:
when inspected with "go doc Sample" yields:
where *private should not appear at all.
The text was updated successfully, but these errors were encountered: