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 | --> |
6 | {{$query_url := urlquery .Query}} |
7 | {{if not .Idents}} |
8 | {{with .Pak}} |
9 | <h2 id="Packages">Package {{html $.Query}}</h2> |
10 | <p> |
11 | <table class="layout"> |
12 | {{range .}} |
13 | {{$pkg_html := pkgLink .Pak.Path | html}} |
14 | <tr><td><a href="/{{$pkg_html}}">{{$pkg_html}}</a></td></tr> |
15 | {{end}} |
16 | </table> |
17 | </p> |
18 | {{end}} |
19 | {{end}} |
20 | {{with .Hit}} |
21 | {{with .Decls}} |
22 | <h2 id="Global">Package-level declarations</h2> |
23 | {{range .}} |
24 | {{$pkg_html := pkgLink .Pak.Path | html}} |
25 | <h3 id="Global_{{$pkg_html}}">package <a href="/{{$pkg_html}}">{{html .Pak.Name}}</a></h3> |
26 | {{range .Files}} |
27 | {{$file := .File.Path}} |
28 | {{range .Groups}} |
29 | {{range .}} |
30 | {{$line := infoLine .}} |
31 | <a href="{{queryLink $file $query_url $line | html}}">{{$file}}:{{$line}}</a> |
32 | {{infoSnippet_html .}} |
33 | {{end}} |
34 | {{end}} |
35 | {{end}} |
36 | {{end}} |
37 | {{end}} |
38 | {{with .Others}} |
39 | <h2 id="Local">Local declarations and uses</h2> |
40 | {{range .}} |
41 | {{$pkg_html := pkgLink .Pak.Path | html}} |
42 | <h3 id="Local_{{$pkg_html}}">package <a href="/{{$pkg_html}}">{{html .Pak.Name}}</a></h3> |
43 | {{range .Files}} |
44 | {{$file := .File.Path}} |
45 | <a href="{{queryLink $file $query_url 0 | html}}">{{$file}}</a> |
46 | <table class="layout"> |
47 | {{range .Groups}} |
48 | <tr> |
49 | <td width="25"></td> |
50 | <th align="left" valign="top">{{index . 0 | infoKind_html}}</th> |
51 | <td align="left" width="4"></td> |
52 | <td> |
53 | {{range .}} |
54 | {{$line := infoLine .}} |
55 | <a href="{{queryLink $file $query_url $line | html}}">{{$line}}</a> |
56 | {{end}} |
57 | </td> |
58 | </tr> |
59 | {{end}} |
60 | </table> |
61 | {{end}} |
62 | {{end}} |
63 | {{end}} |
64 | {{end}} |
65 |
Members