1
0
mirror of https://github.com/golang/go synced 2024-11-22 10:44:41 -07:00
go/lib/godoc/example.html
Andrew Gerrand 5ab935f68a godoc: list examples in index
Fixes #2897.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5658047
2012-02-14 14:52:00 +11:00

15 lines
345 B
HTML

<div id="example_{{.Name}}" class="example">
<div class="collapsed">
<p class="exampleHeading">▹ Example</p>
</div>
<div class="expanded">
<p class="exampleHeading">▾ Example</p>
<p>Code:</p>
<pre class="code">{{.Code}}</pre>
{{if .Output}}
<p>Output:</p>
<pre class="output">{{html .Output}}</pre>
{{end}}
</div>
</div>