summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2010-03-10 15:22:22 -0800
committerRobert Griesemer <gri@golang.org>2010-03-10 15:22:22 -0800
commit5df81c5fdbc6d3949f78a2b6e96fd2db334d72fa (patch)
tree80716ecff1adc917e3bc4fe9c1b12ad3c65ec020 /lib
parent73d8d098573514c167264631109d73828b3e85cc (diff)
downloadgo-5df81c5fdbc6d3949f78a2b6e96fd2db334d72fa.tar.gz
godoc: provide mode which shows exported interface in "source form"
- on the commandline: godoc -x big - in a webpage: provide form parameter ?m=src Known issues: - Positioning of comments incorrect in several cases. Separate CL. - Need a link/menu to switch between different modes of presentation in the web view. R=rsc CC=golang-dev http://codereview.appspot.com/376041
Diffstat (limited to 'lib')
-rw-r--r--lib/godoc/package.html5
-rw-r--r--lib/godoc/package.txt3
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/godoc/package.html b/lib/godoc/package.html
index 2113e46bd..c0cd18f31 100644
--- a/lib/godoc/package.html
+++ b/lib/godoc/package.html
@@ -4,6 +4,11 @@
license that can be found in the LICENSE file.
-->
+{.section PAst}
+ <pre>
+ {@|html}
+ </pre>
+{.end}
{.section PDoc}
<!-- PackageName is printed as title by the top-level template -->
{.section IsPkg}
diff --git a/lib/godoc/package.txt b/lib/godoc/package.txt
index 77d20f49f..b9203ff21 100644
--- a/lib/godoc/package.txt
+++ b/lib/godoc/package.txt
@@ -1,3 +1,6 @@
+{.section PAst}
+{@}
+{.end}
{.section PDoc}
{.section IsPkg}
PACKAGE