Brad Garcia | a28efa5 | 2014-01-06 09:51:01 -0500 | [diff] [blame] | 1 | <!-- |
| 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 Garcia | a28efa5 | 2014-01-06 09:51:01 -0500 | [diff] [blame] | 6 | {{range $key, $val := .Idents}} |
Oling Cat | e14fb0e | 2014-08-26 13:21:29 -0700 | [diff] [blame] | 7 | {{if $val}} |
Andrew Gerrand | 63db077 | 2014-07-23 09:59:58 +1000 | [diff] [blame] | 8 | <h2 id="{{$key.Name}}">{{$key.Name}}</h2> |
Oling Cat | e14fb0e | 2014-08-26 13:21:29 -0700 | [diff] [blame] | 9 | {{range $val}} |
| 10 | {{$pkg_html := pkgLink .Path | html}} |
Brad Garcia | 27d851f | 2014-01-06 13:26:25 -0500 | [diff] [blame] | 11 | {{if eq "Packages" $key.Name}} |
Oling Cat | e14fb0e | 2014-08-26 13:21:29 -0700 | [diff] [blame] | 12 | <a href="/{{$pkg_html}}">{{html .Path}}</a> |
Brad Garcia | 27d851f | 2014-01-06 13:26:25 -0500 | [diff] [blame] | 13 | {{else}} |
Oling Cat | e14fb0e | 2014-08-26 13:21:29 -0700 | [diff] [blame] | 14 | {{$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}} |
aarzilli | 79f3242 | 2022-06-09 15:19:50 +0200 | [diff] [blame] | 18 | <p>{{comment_html $ .Doc}}</p> |
Oling Cat | e14fb0e | 2014-08-26 13:21:29 -0700 | [diff] [blame] | 19 | {{else}} |
| 20 | <p><em>No documentation available</em></p> |
| 21 | {{end}} |
| 22 | {{end}} |
| 23 | {{end}} |
Brad Garcia | a28efa5 | 2014-01-06 09:51:01 -0500 | [diff] [blame] | 24 | {{end}} |