mirror of
https://github.com/golang/go
synced 2024-11-24 21:20:05 -07:00
5ab935f68a
Fixes #2897. R=golang-dev, r CC=golang-dev https://golang.org/cl/5658047
15 lines
345 B
HTML
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>
|