diff options
author | Robert Griesemer <gri@golang.org> | 2010-03-10 15:22:22 -0800 |
---|---|---|
committer | Robert Griesemer <gri@golang.org> | 2010-03-10 15:22:22 -0800 |
commit | 8302a8288535788507436b66dd98db977440fa27 (patch) | |
tree | 80716ecff1adc917e3bc4fe9c1b12ad3c65ec020 /lib | |
parent | 2a77c01fc24516c363edae3469cf582b343f8418 (diff) | |
download | golang-8302a8288535788507436b66dd98db977440fa27.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.html | 5 | ||||
-rw-r--r-- | lib/godoc/package.txt | 3 |
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 |