1
0
mirror of https://github.com/golang/go synced 2024-11-22 16:44:54 -07:00
go/lib/godoc/example.html
2012-02-16 12:43:22 +11:00

16 lines
429 B
HTML

<div id="example_{{.Name}}" class="example">
<div class="collapsed">
<p class="exampleHeading">▹ Example{{example_suffix .Name}}</p>
</div>
<div class="expanded">
<p class="exampleHeading">▾ Example{{example_suffix .Name}}</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>