aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2009-08-03 09:53:00 -0700
committerRobert Griesemer <gri@golang.org>2009-08-03 09:53:00 -0700
commit178089056ea9dae2c2807f0b5b475c2caf09fde3 (patch)
tree87956d4bd710adfd2c4daa184cfccd56e115aac1 /lib
parent22ec53992034d3e33fb220183d3416869546fbf5 (diff)
downloadgo-178089056ea9dae2c2807f0b5b475c2caf09fde3.tar.xz
printer.go:
- emit line tag id's in html mode - support for general html tags - better names for a few identifiers godoc.go: - emit links from exported names to source code (actual placement needs fine-tuning) R=rsc DELTA=108 (68 added, 4 deleted, 36 changed) OCL=32639 CL=32654
Diffstat (limited to 'lib')
-rw-r--r--lib/godoc/package.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/godoc/package.html b/lib/godoc/package.html
index 4931035df1..c7ae7593df 100644
--- a/lib/godoc/package.html
+++ b/lib/godoc/package.html
@@ -37,7 +37,7 @@
{.section Funcs}
<hr />
{.repeated section @}
- <h2>func {Name|html}</h2>
+ <h2>func <a href="{Decl|link}">{Name|html}</a></h2>
<p><code>{Decl|html}</code></p>
{Doc|html-comment}
{.end}
@@ -45,16 +45,16 @@
{.section Types}
{.repeated section @}
<hr />
- <h2>type {.section Type}{Name|html}{.end}</h2>
+ <h2>type <a href="{Decl|link}">{Type.Name|html}</a></h2>
{Doc|html-comment}
<p><pre>{Decl|html}</pre></p>
{.repeated section Factories}
- <h3>func {Name|html}</h3>
+ <h3>func <a href="{Decl|link}">{Name|html}</a></h3>
<p><code>{Decl|html}</code></p>
{Doc|html-comment}
{.end}
{.repeated section Methods}
- <h3>func ({Recv|html}) {Name|html}</h3>
+ <h3>func ({Recv|html}) <a href="{Decl|link}">{Name|html}</a></h3>
<p><code>{Decl|html}</code></p>
{Doc|html-comment}
{.end}