]> Cypherpunks repositories - gostls13.git/commit
go/doc: hide methods on locally-declared predeclared types
authorLarz Conwell <larzconwell@gmail.com>
Sat, 12 Mar 2016 07:57:24 +0000 (02:57 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 6 Oct 2016 00:35:30 +0000 (00:35 +0000)
commit5fd6bb4c14b395bc413f281987225b57ae5fe67c
treefadbcf40d2cff3dcb8f331017cccf2b96085a5bb
parenteee727d0855b9e78f9df87e08d57b1d7f264876c
go/doc: hide methods on locally-declared predeclared types

Currently if you declare a type overwriting a predeclared type
and export methods on it they will be exposed in godoc, even
though the type itself is not exported. This corrects that
by making all methods on these types hidden, since that's
the expected output.

Fixes #9860

Change-Id: I14037bdcef1b4bbefcf299a143bac8bf363718e0
Reviewed-on: https://go-review.googlesource.com/20610
Reviewed-by: Russ Cox <rsc@golang.org>
src/go/doc/reader.go
src/go/doc/testdata/predeclared.0.golden [new file with mode: 0644]
src/go/doc/testdata/predeclared.1.golden [new file with mode: 0644]
src/go/doc/testdata/predeclared.2.golden [new file with mode: 0644]
src/go/doc/testdata/predeclared.go [new file with mode: 0644]