GoPLS Viewer

Home|gopls/godoc/static/search.html
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
7{{ $colCount := tocColCount .}}
8{{/* Generate the TOC */}}
9<nav class="search-nav" style="column-count: {{$colCount}}" role="navigation">
10{{range $key, $val := .Idents}}
11    {{if $val}}
12        <a href="#{{$key.Name}}">{{$key.Name}}</a>
13        <br />
14    {{end}}
15{{end}}
16
17{{if not .Idents}}
18    {{with .Pak}}
19        <a href="#Packages">Package {{html $.Query}}</a>
20        <br />
21    {{end}}
22{{end}}
23
24{{with .Hit}}
25    {{with .Decls}}
26        <a href="#Global">Package-level declarations</a>
27        <br />
28        {{range .}}
29            {{$pkg_html := pkgLink .Pak.Path | html}}
30            <a href="#Global_{{$pkg_html}}" class="indent">package {{html .Pak.Name}}</a>
31            <br />
32        {{end}}
33    {{end}}
34    {{with .Others}}
35        <a href="#Local">Local declarations and uses</a>
36        <br />
37        {{range .}}
38            {{$pkg_html := pkgLink .Pak.Path | html}}
39            <a href="#Local_{{$pkg_html}}" class="indent">package {{html .Pak.Name}}</a>
40            <br />
41        {{end}}
42    {{end}}
43{{end}}
44
45{{with .Textual}}
46    {{if $.Complete}}
47        <a href="#Textual">{{html $.Found}} textual occurrences</a>
48    {{else}}
49        <a href="#Textual">More than {{html $.Found}} textual occurrences</a>
50    {{end}}
51{{end}}
52</nav>
53
54{{with .Alert}}
55    <p>
56    <span class="alert" style="font-size:120%">{{html .}}</span>
57    </p>
58{{end}}
59{{with .Alt}}
60    <p>
61    <span class="alert" style="font-size:120%">Did you mean: </span>
62    {{range .Alts}}
63        <a href="search?q={{urlquery .}}" style="font-size:120%">{{html .}}</a>
64    {{end}}
65    </p>
66{{end}}
67
MembersX
Members
X