mirror of
https://github.com/golang/go
synced 2024-11-21 15:54:43 -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:
parent
4feafeeea0
commit
af84892643
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user