Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201105173854-bc9fc8d8c4bc / godoc / static / search.html
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201105173854-bc9fc8d8c4bc/godoc/static/search.html b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201105173854-bc9fc8d8c4bc/godoc/static/search.html
new file mode 100644 (file)
index 0000000..3714e1d
--- /dev/null
@@ -0,0 +1,66 @@
+<!--
+       Copyright 2009 The Go Authors. All rights reserved.
+       Use of this source code is governed by a BSD-style
+       license that can be found in the LICENSE file.
+-->
+
+{{ $colCount := tocColCount .}}
+{{/* Generate the TOC */}}
+<nav class="search-nav" style="column-count: {{$colCount}}" role="navigation">
+{{range $key, $val := .Idents}}
+       {{if $val}}
+               <a href="#{{$key.Name}}">{{$key.Name}}</a>
+               <br />
+       {{end}}
+{{end}}
+
+{{if not .Idents}}
+       {{with .Pak}}
+               <a href="#Packages">Package {{html $.Query}}</a>
+               <br />
+       {{end}}
+{{end}}
+
+{{with .Hit}}
+       {{with .Decls}}
+               <a href="#Global">Package-level declarations</a>
+               <br />
+               {{range .}}
+                       {{$pkg_html := pkgLink .Pak.Path | html}}
+                       <a href="#Global_{{$pkg_html}}" class="indent">package {{html .Pak.Name}}</a>
+                       <br />
+               {{end}}
+       {{end}}
+       {{with .Others}}
+               <a href="#Local">Local declarations and uses</a>
+               <br />
+               {{range .}}
+                       {{$pkg_html := pkgLink .Pak.Path | html}}
+                       <a href="#Local_{{$pkg_html}}" class="indent">package {{html .Pak.Name}}</a>
+                       <br />
+               {{end}}
+       {{end}}
+{{end}}
+
+{{with .Textual}}
+       {{if $.Complete}}
+               <a href="#Textual">{{html $.Found}} textual occurrences</a>
+       {{else}}
+               <a href="#Textual">More than {{html $.Found}} textual occurrences</a>
+       {{end}}
+{{end}}
+</nav>
+
+{{with .Alert}}
+       <p>
+       <span class="alert" style="font-size:120%">{{html .}}</span>
+       </p>
+{{end}}
+{{with .Alt}}
+       <p>
+       <span class="alert" style="font-size:120%">Did you mean: </span>
+       {{range .Alts}}
+               <a href="search?q={{urlquery .}}" style="font-size:120%">{{html .}}</a>
+       {{end}}
+       </p>
+{{end}}