diff --git a/godoc/static/package.html b/godoc/static/package.html index 067cfc2a..674196de 100644 --- a/godoc/static/package.html +++ b/godoc/static/package.html @@ -168,8 +168,8 @@

func {{$name_html}}

- {{comment_html .Doc}}
{{node_html $ .Decl true}}
+ {{comment_html .Doc}} {{example_html $ .Name}} {{callgraph_html $ "" .Name}} @@ -202,8 +202,8 @@

func {{$name_html}}

- {{comment_html .Doc}}
{{node_html $ .Decl true}}
+ {{comment_html .Doc}} {{example_html $ .Name}} {{callgraph_html $ "" .Name}} {{end}} @@ -213,8 +213,8 @@

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

- {{comment_html .Doc}}
{{node_html $ .Decl true}}
+ {{comment_html .Doc}} {{$name := printf "%s_%s" $tname .Name}} {{example_html $ $name}} {{callgraph_html $ .Recv .Name}} diff --git a/godoc/static/static.go b/godoc/static/static.go index 74338bf7..0ee57620 100644 --- a/godoc/static/static.go +++ b/godoc/static/static.go @@ -1778,8 +1778,8 @@ function cgAddChild(tree, ul, cgn) {

func {{$name_html}}

- {{comment_html .Doc}}
{{node_html $ .Decl true}}
+ {{comment_html .Doc}} {{example_html $ .Name}} {{callgraph_html $ "" .Name}} @@ -1812,8 +1812,8 @@ function cgAddChild(tree, ul, cgn) {

func {{$name_html}}

- {{comment_html .Doc}}
{{node_html $ .Decl true}}
+ {{comment_html .Doc}} {{example_html $ .Name}} {{callgraph_html $ "" .Name}} {{end}} @@ -1823,8 +1823,8 @@ function cgAddChild(tree, ul, cgn) {

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

- {{comment_html .Doc}}
{{node_html $ .Decl true}}
+ {{comment_html .Doc}} {{$name := printf "%s_%s" $tname .Name}} {{example_html $ $name}} {{callgraph_html $ .Recv .Name}}