1
0
mirror of https://github.com/golang/go synced 2024-11-22 17:14:41 -07:00
go/lib/godoc/example.html
2012-03-15 08:09:54 +11:00

16 lines
481 B
HTML

<div id="example_{{.Name}}" class="example">
<div class="collapsed">
<p class="exampleHeading"><span class="text">Example{{example_suffix .Name}}</span></p>
</div>
<div class="expanded">
<p class="exampleHeading"><span class="text">Example{{example_suffix .Name}}</span></p>
{{with .Doc}}<p>{{html .}}</p>{{end}}
<p>Code:</p>
<pre class="code">{{.Code}}</pre>
{{with .Output}}
<p>Output:</p>
<pre class="output">{{html .}}</pre>
{{end}}
</div>
</div>