diff --git a/godoc/static/package.html b/godoc/static/package.html index bf9cd1fe..067cfc2a 100644 --- a/godoc/static/package.html +++ b/godoc/static/package.html @@ -151,15 +151,15 @@ {{with .Consts}}

Constants

{{range .}} -
{{node_html $ .Decl true}}
{{comment_html .Doc}} +
{{node_html $ .Decl true}}
{{end}} {{end}} {{with .Vars}}

Variables

{{range .}} -
{{node_html $ .Decl true}}
{{comment_html .Doc}} +
{{node_html $ .Decl true}}
{{end}} {{end}} {{range .Funcs}} @@ -168,8 +168,8 @@

func {{$name_html}}

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

type {{$tname_html}}

-
{{node_html $ .Decl true}}
{{comment_html .Doc}} +
{{node_html $ .Decl true}}
{{range .Consts}} -
{{node_html $ .Decl true}}
{{comment_html .Doc}} +
{{node_html $ .Decl true}}
{{end}} {{range .Vars}} -
{{node_html $ .Decl true}}
{{comment_html .Doc}} +
{{node_html $ .Decl true}}
{{end}} {{example_html $ $tname}} @@ -202,8 +202,8 @@

func {{$name_html}}

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

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

-
{{node_html $ .Decl true}}
{{comment_html .Doc}} +
{{node_html $ .Decl true}}
{{$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 923270a1..f6e267e6 100644 --- a/godoc/static/static.go +++ b/godoc/static/static.go @@ -1599,8 +1599,8 @@ function cgAddChild(tree, ul, cgn) { {{if $.IsMain}} - {{/* command documentation */}} {{comment_html .Doc}} + {{/* command documentation */}} {{else}} {{/* package documentation */}}
@@ -1734,15 +1734,15 @@ function cgAddChild(tree, ul, cgn) { {{with .Consts}}

Constants

{{range .}} -
{{node_html $ .Decl true}}
{{comment_html .Doc}} +
{{node_html $ .Decl true}}
{{end}} {{end}} {{with .Vars}}

Variables

{{range .}} -
{{node_html $ .Decl true}}
{{comment_html .Doc}} +
{{node_html $ .Decl true}}
{{end}} {{end}} {{range .Funcs}} @@ -1751,8 +1751,8 @@ function cgAddChild(tree, ul, cgn) {

func {{$name_html}}

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

type {{$tname_html}}

-
{{node_html $ .Decl true}}
{{comment_html .Doc}} +
{{node_html $ .Decl true}}
{{range .Consts}} -
{{node_html $ .Decl true}}
{{comment_html .Doc}} +
{{node_html $ .Decl true}}
{{end}} {{range .Vars}} -
{{node_html $ .Decl true}}
{{comment_html .Doc}} +
{{node_html $ .Decl true}}
{{end}} {{example_html $ $tname}} @@ -1785,8 +1785,8 @@ function cgAddChild(tree, ul, cgn) {

func {{$name_html}}

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

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

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