1
0
mirror of https://github.com/golang/go synced 2024-11-21 16:04:45 -07:00

godoc: Show type examples between variables and methods.

Fixes #2466.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5451094
This commit is contained in:
Volker Dobler 2011-12-06 10:52:43 +11:00 committed by Andrew Gerrand
parent 4feafeeea0
commit af84892643

View File

@ -89,7 +89,6 @@
<h2 id="{{$tname_html}}">type <a href="/{{posLink_url .Decl $.FSet}}">{{$tname_html}}</a></h2>
{{comment_html .Doc}}
<p><pre>{{node_html .Decl $.FSet}}</pre></p>
{{example_html $tname $.Examples $.FSet}}
{{range .Consts}}
{{comment_html .Doc}}
<pre>{{node_html .Decl $.FSet}}</pre>
@ -98,6 +97,7 @@
{{comment_html .Doc}}
<pre>{{node_html .Decl $.FSet}}</pre>
{{end}}
{{example_html $tname $.Examples $.FSet}}
{{range .Factories}}
{{$name_html := html .Name}}
<h3 id="{{$name_html}}">func <a href="/{{posLink_url .Decl $.FSet}}">{{$name_html}}</a></h3>