From d571c5ca78a58489a1fd223dd6749a650668ccdc Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Wed, 25 Jan 2012 16:48:06 -0800 Subject: 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 --- lib/godoc/package.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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}} -

func ({{node_html .Recv $.FSet}}) {{$name_html}}

+

func ({{html .Recv}}) {{$name_html}}

{{node_html .Decl $.FSet}}

{{comment_html .Doc}} {{$name := printf "%s_%s" $tname .Name}} -- cgit v1.3-5-g9baa