1
0
mirror of https://github.com/golang/go synced 2024-11-24 22:57:57 -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> <h2 id="{{$tname_html}}">type <a href="/{{posLink_url .Decl $.FSet}}">{{$tname_html}}</a></h2>
{{comment_html .Doc}} {{comment_html .Doc}}
<p><pre>{{node_html .Decl $.FSet}}</pre></p> <p><pre>{{node_html .Decl $.FSet}}</pre></p>
{{example_html $tname $.Examples $.FSet}}
{{range .Consts}} {{range .Consts}}
{{comment_html .Doc}} {{comment_html .Doc}}
<pre>{{node_html .Decl $.FSet}}</pre> <pre>{{node_html .Decl $.FSet}}</pre>
@ -98,6 +97,7 @@
{{comment_html .Doc}} {{comment_html .Doc}}
<pre>{{node_html .Decl $.FSet}}</pre> <pre>{{node_html .Decl $.FSet}}</pre>
{{end}} {{end}}
{{example_html $tname $.Examples $.FSet}}
{{range .Factories}} {{range .Factories}}
{{$name_html := html .Name}} {{$name_html := html .Name}}
<h3 id="{{$name_html}}">func <a href="/{{posLink_url .Decl $.FSet}}">{{$name_html}}</a></h3> <h3 id="{{$name_html}}">func <a href="/{{posLink_url .Decl $.FSet}}">{{$name_html}}</a></h3>