1
0
mirror of https://github.com/golang/go synced 2024-11-22 09:34:54 -07:00
go/lib/godoc/example.html
Volker Dobler 1e5aecf6ce godoc: improved output of examples in html.
Fixes #2467.
Fixes #2464.

R=golang-dev, rsc, adg
CC=golang-dev
https://golang.org/cl/5447051
2011-12-02 09:52:31 +11:00

15 lines
336 B
HTML

<div class="example">
<div class="collapsed">
<p class="exampleHeading">▹ Example</p>
</div>
<div class="expanded">
<p class="exampleHeading">▾ Example</p>
<p>Code:</p>
<p class="code"><pre>{{.Code}}</pre></p>
{{if .Output}}
<p>Output:</p>
<p class="output"><pre>{{html .Output}}</pre></p>
{{end}}
</div>
</div>