blob: 84dcb345270707cc1d1ef2f9bc38689d75ac7b4c [file] [log] [blame]
Brad Garciaa28efa52014-01-06 09:51:01 -05001<!--
2 Copyright 2009 The Go Authors. All rights reserved.
3 Use of this source code is governed by a BSD-style
4 license that can be found in the LICENSE file.
5-->
Brad Garciaa28efa52014-01-06 09:51:01 -05006{{range $key, $val := .Idents}}
Oling Cate14fb0e2014-08-26 13:21:29 -07007 {{if $val}}
Andrew Gerrand63db0772014-07-23 09:59:58 +10008 <h2 id="{{$key.Name}}">{{$key.Name}}</h2>
Oling Cate14fb0e2014-08-26 13:21:29 -07009 {{range $val}}
10 {{$pkg_html := pkgLink .Path | html}}
Brad Garcia27d851f2014-01-06 13:26:25 -050011 {{if eq "Packages" $key.Name}}
Oling Cate14fb0e2014-08-26 13:21:29 -070012 <a href="/{{$pkg_html}}">{{html .Path}}</a>
Brad Garcia27d851f2014-01-06 13:26:25 -050013 {{else}}
Oling Cate14fb0e2014-08-26 13:21:29 -070014 {{$doc_html := docLink .Path .Name| html}}
15 <a href="/{{$pkg_html}}">{{html .Package}}</a>.<a href="{{$doc_html}}">{{.Name}}</a>
16 {{end}}
17 {{if .Doc}}
aarzilli79f32422022-06-09 15:19:50 +020018 <p>{{comment_html $ .Doc}}</p>
Oling Cate14fb0e2014-08-26 13:21:29 -070019 {{else}}
20 <p><em>No documentation available</em></p>
21 {{end}}
22 {{end}}
23 {{end}}
Brad Garciaa28efa52014-01-06 09:51:01 -050024{{end}}