1
0
mirror of https://github.com/golang/go synced 2024-11-22 21:20:03 -07:00
go/lib/godoc/example.html

16 lines
429 B
HTML
Raw Normal View History

<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>