diff options
author | Michael Stapelberg <michael@stapelberg.de> | 2013-03-23 11:28:53 +0100 |
---|---|---|
committer | Michael Stapelberg <michael@stapelberg.de> | 2013-03-23 11:28:53 +0100 |
commit | b39e15dde5ec7b96c15da9faf4ab5892501c1aae (patch) | |
tree | 718cede1f6ca97d082c6c40b7dc3f4f6148253c0 /lib/godoc/package.txt | |
parent | 04b08da9af0c450d645ab7389d1467308cfc2db8 (diff) | |
download | golang-upstream/1.1_hg20130323.tar.gz |
Imported Upstream version 1.1~hg20130323upstream/1.1_hg20130323
Diffstat (limited to 'lib/godoc/package.txt')
-rw-r--r-- | lib/godoc/package.txt | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/godoc/package.txt b/lib/godoc/package.txt index 94239ca1a..bc11fc3c5 100644 --- a/lib/godoc/package.txt +++ b/lib/godoc/package.txt @@ -2,14 +2,15 @@ --------------------------------------- -*/}}{{with .PDoc}}{{if not $.IsMain}}PACKAGE +*/}}{{with .PDoc}}{{if $.IsMain}}COMMAND DOCUMENTATION + +{{comment_text .Doc " " "\t"}} +{{else}}PACKAGE DOCUMENTATION package {{.Name}} import "{{.ImportPath}}" -{{else}}COMMAND DOCUMENTATION - -{{end}}{{comment_text .Doc " " "\t"}} +{{comment_text .Doc " " "\t"}} {{example_text "" $.Examples $.FSet " "}}{{/* --------------------------------------- @@ -58,15 +59,15 @@ TYPES {{end}}{{range .Methods}}{{node .Decl $.FSet}} {{comment_text .Doc " " "\t"}} {{$name := printf "%s_%s" $tname .Name}}{{example_text $name $.Examples $.FSet " "}} -{{end}}{{end}}{{end}}{{/* +{{end}}{{end}}{{end}}{{end}}{{/* --------------------------------------- */}}{{with $.Notes}} {{range $marker, $content := .}} -{{noteTitle $marker}}s +{{$marker}}S -{{range $content}}{{comment_text . " " "\t"}} +{{range $content}}{{comment_text .Body " " "\t"}} {{end}}{{end}}{{end}}{{end}}{{/* --------------------------------------- |