Commit 457b0030 authored by Russ Cox's avatar Russ Cox

godoc: supporting data

R=gri
DELTA=252  (240 added, 3 deleted, 9 changed)
OCL=27482
CL=27521
parent 64627b04
<h1>package {PackageName|html}</h1>
<p><code>import "{ImportPath|html}"</code></p>
{Doc|html-comment}
{.section Consts}
<h2>Constants</h2>
{.repeated section @}
{Doc|html-comment}
<pre>{Decl|html}</pre>
{.end}
{.end}
{.section Vars}
<hr />
<h2>Variables</h2>
{.repeated section @}
{Doc|html-comment}
<pre>{Decl|html}</pre>
{.end}
{.end}
{.section Funcs}
<hr />
{.repeated section @}
<h2>func {Name|html}</h2>
<p><code>{Decl|html}</code></p>
{Doc|html-comment}
{.end}
{.end}
{.section Types}
<hr />
{.repeated section @}
<h2>type {.section Type}{Name|html}{.end}</h2>
{Doc}
<p><code>{Decl|html}</code></p>
{.repeated section Factories}
<h3>func {Name|html}</h3>
<p><code>{Decl|html}</code></p>
{Doc|html-comment}
{.end}
{.repeated section Methods}
<h3>func ({Recv|html}) {Name|html}</h3>
<p><code>{Decl|html}</code></p>
{Doc|html-comment}
{.end}
{.end}
{.end}
PACKAGE
package {PackageName}
import "{ImportPath}"
{.section Doc}
{@}
{.end}
{.section Consts}
CONSTANTS
{.repeated section @}
{# the .repeated section, .section idiom skips over nils in the array}
{Decl}
{Doc}
{.end}
{.end}
{.section Vars}
VARIABLES
{.repeated section @}
{Decl}
{Doc}
{.end}
{.end}
{.section Funcs}
FUNCTIONS
{.repeated section @}
{Decl}
{Doc}
{.end}
{.end}
{.section Types}
TYPES
{.repeated section @}
{Decl}
{Doc}
{.repeated section Factories}
{Decl}
{Doc}
{.end}
{.repeated section Methods}
{Decl}
{Doc}
{.end}
{.end}
{.end}
{.section Packages}
<b>Packages</b><br />
{.repeated section @}
<a href="{pakname|html}">{importpath|html}</a><br />
{.end}
{.or}
No such package {Path|html}<br />
{.end}
{.section Subdirs}
<br />
<b>Directories</b><br />
{.repeated section @}
<a href="{Name|html}/">{Path|html}{Name|html}/</a><br />
{.end}
{.end}
{.section Packages}
{# TODO .or doesn't work on .repeated - template bug}
{.repeated section @}
godoc {pakname}
{.end}
{.or}
package not found: {Path}
{.end}
{.repeated section Subdirs}
godoc {Path}/{Name}/
{.end}
<h1>Parse errors in {filename}</h1>
<pre>
{.repeated section list}
{src}{.section msg}<b><font color=red>«{msg|html}»</font></b>{.end}{.end}</pre>
parse errors:
{.repeated section list}
{.section msg}
{filename}:{line}: {msg}
{.end}
{.end}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment