From: Russ Cox Date: Tue, 11 Dec 2012 01:20:00 +0000 (-0500) Subject: godoc: move example list into index section X-Git-Tag: go1.1rc2~1677 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=dffdece81928103398e74d1b462bba03eb24552c;p=gostls13.git godoc: move example list into index section Putting it before the Index (where it is now) is wrong: we don't even know what's in the package yet. Fixes #4484. R=adg, dsymonds CC=golang-dev https://golang.org/cl/6868071 --- diff --git a/lib/godoc/package.html b/lib/godoc/package.html index a94a43fd09..1a17ad9b9e 100644 --- a/lib/godoc/package.html +++ b/lib/godoc/package.html @@ -17,10 +17,10 @@
Overview
+
Index
{{if $.Examples}}
Examples
{{end}} -
Index
{{if $.Dirs}}
Subdirectories
{{end}} @@ -38,22 +38,6 @@ {{example_html "" $.Examples $.FSet}} - {{if $.Examples}} -
- -
-

Examples ▾

-
- {{range $.Examples}} -
{{example_name .Name}}
- {{end}} -
-
-
- {{end}} -
+ {{if $.Examples}} +
+

Examples

+
+ {{range $.Examples}} +
{{example_name .Name}}
+ {{end}} +
+
+ {{end}} + {{with .Filenames}}

Package files