mirror of
https://github.com/golang/go
synced 2024-11-25 12:17:56 -07:00
0b762d9523
This makes packages with lengthly package comments easier to browse. R=golang-dev, r CC=golang-dev https://golang.org/cl/5901055
16 lines
506 B
HTML
16 lines
506 B
HTML
<div id="example_{{.Name}}" class="toggle">
|
|
<div class="collapsed">
|
|
<p class="exampleHeading toggleButton">▹ <span class="text">Example{{example_suffix .Name}}</span></p>
|
|
</div>
|
|
<div class="expanded">
|
|
<p class="exampleHeading toggleButton">▾ <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>
|