Add support for displaying the notes of the form 'MARKER(userid): comment' now collected by the go/doc package. Any two or more uppercase letters are recognised as a marker.
R=gri, rsc, bradfitz
CC=golang-dev
https://golang.org/cl/
7334044
{{if .Bugs}}
<dd><a href="#pkg-bugs">Bugs</a></dd>
{{end}}
+ {{if .Notes}}
+ {{range $marker, $item := .Notes}}
+ <dd><a href="#pkg-{{$marker}}">{{$marker}}</a></dd>
+ {{end}}
+ {{end}}
</dl>
</div><!-- #manual-nav -->
{{comment_html .}}
{{end}}
{{end}}
+ {{with .Notes}}
+ {{range $marker, $content := .}}
+ <h2 id="pkg-{{$marker}}">{{$marker}}</h2>
+ {{range .}}
+ {{comment_html .}}
+ {{end}}
+ {{end}}
+ {{end}}
{{end}}
{{with .PAst}}
BUGS
{{range .}}{{comment_text . " " "\t"}}
-{{end}}{{end}}{{end}}{{/*
+{{end}}{{end}}{{with .Notes}}
+{{range $marker, $content := .}}
+{{$marker}}
+
+{{range $content}}{{comment_text . " " "\t"}}
+{{end}}{{end}}{{end}}{{end}}{{/*
---------------------------------------