diff options
| author | Robert Griesemer <gri@golang.org> | 2012-01-25 16:48:06 -0800 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2012-01-25 16:48:06 -0800 |
| commit | d571c5ca78a58489a1fd223dd6749a650668ccdc (patch) | |
| tree | 605ca89aa437835ad2c98053b7b303a58b76d6d9 /lib | |
| parent | 1e09031f7f9293ba032c88abb55b373d341f01bf (diff) | |
| download | go-d571c5ca78a58489a1fd223dd6749a650668ccdc.tar.xz | |
go/doc: revert API change (per former discussion) and cleanup
Separating Method from Func made the code only more complicated
without adding much to the useability/readability of the API.
Reverted to where it was, but leaving the new method-specific
fields Orig and Level.
Former clients (godoc) of doc.Method only used the Func fields;
and because Func was embedded, no changes are needed with respect
to the removal of Method.
Changed type of Func.Recv from ast.Expr to string. This was a
long-standing TODO. Also implemented Func.Orig field (another TODO).
No further go/doc API changes are expected for Go 1.
R=rsc, r, r
CC=golang-dev
https://golang.org/cl/5577043
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/godoc/package.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/godoc/package.html b/lib/godoc/package.html index d84c1c1e7f..4aa77be88e 100644 --- a/lib/godoc/package.html +++ b/lib/godoc/package.html @@ -108,7 +108,7 @@ {{end}} {{range .Methods}} {{$name_html := html .Name}} - <h3 id="{{$tname_html}}.{{$name_html}}">func ({{node_html .Recv $.FSet}}) <a href="/{{posLink_url .Decl $.FSet}}">{{$name_html}}</a></h3> + <h3 id="{{$tname_html}}.{{$name_html}}">func ({{html .Recv}}) <a href="/{{posLink_url .Decl $.FSet}}">{{$name_html}}</a></h3> <p><code>{{node_html .Decl $.FSet}}</code></p> {{comment_html .Doc}} {{$name := printf "%s_%s" $tname .Name}} |
