mirror of
https://github.com/golang/go
synced 2024-11-02 11:50:30 +00:00
godoc: improved output of examples in html.
Fixes #2467. Fixes #2464. R=golang-dev, rsc, adg CC=golang-dev https://golang.org/cl/5447051
This commit is contained in:
parent
15a3a5cf6c
commit
1e5aecf6ce
1 changed files with 4 additions and 1 deletions
|
@ -3,9 +3,12 @@
|
|||
<p class="exampleHeading">▹ Example</p>
|
||||
</div>
|
||||
<div class="expanded">
|
||||
<p class="exampleHeading">▾ Example Code:</p>
|
||||
<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>
|
||||
|
|
Loading…
Reference in a new issue