diff options
author | Cosmos Nicolaou <cnicolaou@google.com> | 2013-02-14 20:20:32 -0800 |
---|---|---|
committer | Cosmos Nicolaou <cnicolaou@google.com> | 2013-02-14 20:20:32 -0800 |
commit | 69fbcd0f460299c6a42f1ca9467a8ddbf46b9ffd (patch) | |
tree | 79bd5762dff6ed51aeaac1551750d78750fe5c57 /src/pkg/go/doc/testdata/template.txt | |
parent | 6d0b70b27ac39110fdd5a1f2aec1b340caaf00a0 (diff) | |
download | go-69fbcd0f460299c6a42f1ca9467a8ddbf46b9ffd.tar.gz |
go/doc: add support for arbitrary notes
Add support for arbitrary notes of the form // MARKER(userid): comment
in the same vein as BUG(userid): A marker must be two or more upper case [A-Z] letters.
R=gri, rsc, bradfitz, jscrockett01
CC=golang-dev
https://codereview.appspot.com/7322061
Committer: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/pkg/go/doc/testdata/template.txt')
-rw-r--r-- | src/pkg/go/doc/testdata/template.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pkg/go/doc/testdata/template.txt b/src/pkg/go/doc/testdata/template.txt index 32e331cdd..489b5d4ea 100644 --- a/src/pkg/go/doc/testdata/template.txt +++ b/src/pkg/go/doc/testdata/template.txt @@ -62,4 +62,7 @@ TYPES */}}{{with .Bugs}} BUGS {{range .}} {{synopsis .}} -{{end}}{{end}}
\ No newline at end of file +{{end}}{{end}}{{with .Notes}}{{range $marker, $content := .}} +{{$marker}} +{{range $content}} {{synopsis .}} +{{end}}{{end}}{{end}}
\ No newline at end of file |