Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201028153306-37f0764111ff / godoc / static / searchcode.html
diff --git a/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201028153306-37f0764111ff/godoc/static/searchcode.html b/.config/coc/extensions/coc-go-data/tools/pkg/mod/golang.org/x/tools@v0.0.0-20201028153306-37f0764111ff/godoc/static/searchcode.html
new file mode 100644 (file)
index 0000000..a032e64
--- /dev/null
@@ -0,0 +1,64 @@
+<!--
+       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.
+-->
+{{$query_url := urlquery .Query}}
+{{if not .Idents}}
+       {{with .Pak}}
+               <h2 id="Packages">Package {{html $.Query}}</h2>
+               <p>
+               <table class="layout">
+               {{range .}}
+                       {{$pkg_html := pkgLink .Pak.Path | html}}
+                       <tr><td><a href="/{{$pkg_html}}">{{$pkg_html}}</a></td></tr>
+               {{end}}
+               </table>
+               </p>
+       {{end}}
+{{end}}
+{{with .Hit}}
+       {{with .Decls}}
+               <h2 id="Global">Package-level declarations</h2>
+               {{range .}}
+                       {{$pkg_html := pkgLink .Pak.Path | html}}
+                       <h3 id="Global_{{$pkg_html}}">package <a href="/{{$pkg_html}}">{{html .Pak.Name}}</a></h3>
+                       {{range .Files}}
+                               {{$file := .File.Path}}
+                               {{range .Groups}}
+                                       {{range .}}
+                                               {{$line := infoLine .}}
+                                               <a href="{{queryLink $file $query_url $line | html}}">{{$file}}:{{$line}}</a>
+                                               {{infoSnippet_html .}}
+                                       {{end}}
+                               {{end}}
+                       {{end}}
+               {{end}}
+       {{end}}
+       {{with .Others}}
+               <h2 id="Local">Local declarations and uses</h2>
+               {{range .}}
+                       {{$pkg_html := pkgLink .Pak.Path | html}}
+                       <h3 id="Local_{{$pkg_html}}">package <a href="/{{$pkg_html}}">{{html .Pak.Name}}</a></h3>
+                       {{range .Files}}
+                               {{$file := .File.Path}}
+                               <a href="{{queryLink $file $query_url 0 | html}}">{{$file}}</a>
+                               <table class="layout">
+                               {{range .Groups}}
+                                       <tr>
+                                       <td width="25"></td>
+                                       <th align="left" valign="top">{{index . 0 | infoKind_html}}</th>
+                                       <td align="left" width="4"></td>
+                                       <td>
+                                       {{range .}}
+                                               {{$line := infoLine .}}
+                                               <a href="{{queryLink $file $query_url $line | html}}">{{$line}}</a>
+                                       {{end}}
+                                       </td>
+                                       </tr>
+                               {{end}}
+                               </table>
+                       {{end}}
+               {{end}}
+       {{end}}
+{{end}}