mirror of
https://github.com/golang/go
synced 2024-11-24 23:07:56 -07:00
godoc: add Examples link to top-level index
R=golang-dev CC=golang-dev https://golang.org/cl/5702043
This commit is contained in:
parent
26c2443d80
commit
64bc38eb85
@ -12,6 +12,9 @@
|
||||
<dl>
|
||||
<dd><a href="#overview">Overview</a></dd>
|
||||
<dd><a href="#index">Index</a></dd>
|
||||
{{if $.Examples}}
|
||||
<dd><a href="#examples">Examples</a></dd>
|
||||
{{end}}
|
||||
{{if $.Dirs}}
|
||||
<dd><a href="#subdirectories">Subdirectories</a></dd>
|
||||
{{end}}
|
||||
@ -54,7 +57,7 @@
|
||||
</dl>
|
||||
|
||||
{{if $.Examples}}
|
||||
<h4>Examples</h4>
|
||||
<h4 id="examples">Examples</h4>
|
||||
<dl>
|
||||
{{range $.Examples}}
|
||||
<dd><a class="exampleLink" href="#example_{{.Name}}">{{example_name .Name}}</a></dd>
|
||||
|
Loading…
Reference in New Issue
Block a user