mirror of
https://github.com/golang/go
synced 2024-11-25 06:47:56 -07:00
7c9662f461
R=gri CC=golang-dev https://golang.org/cl/5677061
16 lines
429 B
HTML
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>
|