2009-10-27 11:34:31 -06:00
|
|
|
<!--
|
|
|
|
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.
|
|
|
|
-->
|
2011-08-11 14:24:13 -06:00
|
|
|
{{$SearchResult := .}}
|
|
|
|
{{with .Alert}}
|
2009-10-27 11:34:31 -06:00
|
|
|
<p>
|
2011-08-11 14:24:13 -06:00
|
|
|
<span class="alert" style="font-size:120%">{{.}}</span>
|
2009-10-27 11:34:31 -06:00
|
|
|
</p>
|
2011-08-11 14:24:13 -06:00
|
|
|
{{end}}
|
|
|
|
{{with .Alt}}
|
2009-10-27 11:34:31 -06:00
|
|
|
<p>
|
|
|
|
<span class="alert" style="font-size:120%">Did you mean: </span>
|
2011-08-11 14:24:13 -06:00
|
|
|
{{range .Alts}}
|
|
|
|
<a href="search?q={{.|urlquery_esc}}" style="font-size:120%">{{.|html_esc}}</a>
|
|
|
|
{{end}}
|
2009-10-27 11:34:31 -06:00
|
|
|
</p>
|
2011-08-11 14:24:13 -06:00
|
|
|
{{end}}
|
|
|
|
{{with .Hit}}
|
|
|
|
{{with .Decls}}
|
2009-11-16 16:25:16 -07:00
|
|
|
<h2 id="Global">Package-level declarations</h2>
|
2011-08-11 14:24:13 -06:00
|
|
|
{{range .}}
|
|
|
|
<h3 id="Global_{{.Pak.Path|url_pkg}}">package <a href="/{{.Pak.Path|url_pkg}}">{{.Pak.Name|html_esc}}</a></h3>
|
|
|
|
{{range $File := .Files}}
|
|
|
|
{{range .Groups}}
|
|
|
|
{{range .Infos}}
|
|
|
|
<a href="/{{$File.File.Path|url_src}}?h={{$SearchResult.Query|urlquery_esc}}#L{{.|infoLine}}">{{$File.File.Path|url_src}}:{{.|infoLine}}</a>
|
|
|
|
{{.|infoSnippet}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{with .Others}}
|
2009-11-16 16:25:16 -07:00
|
|
|
<h2 id="Local">Local declarations and uses</h2>
|
2011-08-11 14:24:13 -06:00
|
|
|
{{range .}}
|
|
|
|
<h3 id="Local_{{.Pak.Path|url_pkg}}">package <a href="/{{.Pak.Path|url_pkg}}">{{.Pak.Name|html_esc}}</a></h3>
|
|
|
|
{{range $File := .Files}}
|
|
|
|
<a href="/{{.File.Path|url_src}}?h={{$SearchResult.Query|urlquery_esc}}">{{.File.Path|url_src}}</a>
|
2009-11-08 21:17:04 -07:00
|
|
|
<table class="layout">
|
2011-08-11 14:24:13 -06:00
|
|
|
{{range .Groups}}
|
2009-11-08 21:17:04 -07:00
|
|
|
<tr>
|
|
|
|
<td width="25"></td>
|
2011-08-11 14:24:13 -06:00
|
|
|
<th align="left" valign="top">{{.Kind|infoKind}}</th>
|
2009-11-08 21:17:04 -07:00
|
|
|
<td align="left" width="4"></td>
|
|
|
|
<td>
|
2011-08-11 14:24:13 -06:00
|
|
|
{{range .Infos}}
|
|
|
|
<a href="/{{$File.File.Path|url_src}}?h={{$SearchResult.Query|urlquery_esc}}#L{{.|infoLine}}">{{.|infoLine}}</a>
|
|
|
|
{{end}}
|
2009-11-08 21:17:04 -07:00
|
|
|
</td>
|
|
|
|
</tr>
|
2011-08-11 14:24:13 -06:00
|
|
|
{{end}}
|
2009-11-08 21:17:04 -07:00
|
|
|
</table>
|
2011-08-11 14:24:13 -06:00
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{end}}
|
|
|
|
{{with .Textual}}
|
|
|
|
{{if $SearchResult.Complete}}
|
|
|
|
<h2 id="Textual">{{$SearchResult.Found|html_esc}} textual occurrences</h2>
|
|
|
|
{{else}}
|
|
|
|
<h2 id="Textual">More than {{$SearchResult.Found|html_esc}} textual occurrences</h2>
|
2010-12-12 14:13:07 -07:00
|
|
|
<p>
|
2011-08-11 14:24:13 -06:00
|
|
|
<span class="alert" style="font-size:120%">Not all files or lines containing "{{$SearchResult.Query|html_esc}}" are shown.</span>
|
2010-12-12 14:13:07 -07:00
|
|
|
</p>
|
2011-08-11 14:24:13 -06:00
|
|
|
{{end}}
|
2010-12-12 14:13:07 -07:00
|
|
|
<p>
|
2010-12-10 15:40:22 -07:00
|
|
|
<table class="layout">
|
2011-08-11 14:24:13 -06:00
|
|
|
{{range $File := .}}
|
2010-12-10 15:40:22 -07:00
|
|
|
<tr>
|
2010-12-12 14:13:07 -07:00
|
|
|
<td align="left" valign="top">
|
2011-08-11 14:24:13 -06:00
|
|
|
<a href="/{{.Filename|url_src}}?h={{$SearchResult.Query|urlquery_esc}}">{{.Filename|url_src}}</a>:
|
2010-12-10 15:40:22 -07:00
|
|
|
</td>
|
2010-12-12 14:13:07 -07:00
|
|
|
<td align="left" width="4"></td>
|
2011-08-11 14:24:13 -06:00
|
|
|
<th align="left" valign="top">{{.Lines|numlines}}</th>
|
2010-12-12 14:13:07 -07:00
|
|
|
<td align="left" width="4"></td>
|
2011-01-10 16:34:29 -07:00
|
|
|
<td align="left">
|
2011-08-11 14:24:13 -06:00
|
|
|
{{range .Lines}}
|
|
|
|
<a href="/{{$File.Filename|url_src}}?h={{$SearchResult.Query|urlquery_esc}}#L{{.|html_esc}}">{{.|html_esc}}</a>
|
|
|
|
{{end}}
|
|
|
|
{{if not $SearchResult.Complete}}
|
2011-01-19 15:33:05 -07:00
|
|
|
...
|
2011-08-11 14:24:13 -06:00
|
|
|
{{end}}
|
2011-01-10 16:34:29 -07:00
|
|
|
</td>
|
2010-12-10 15:40:22 -07:00
|
|
|
</tr>
|
2011-08-11 14:24:13 -06:00
|
|
|
{{end}}
|
|
|
|
{{if not $SearchResult.Complete}}
|
2010-12-12 14:13:07 -07:00
|
|
|
<tr><td align="left">...</td></tr>
|
2011-08-11 14:24:13 -06:00
|
|
|
{{end}}
|
2010-12-10 15:40:22 -07:00
|
|
|
</table>
|
|
|
|
</p>
|
2011-08-11 14:24:13 -06:00
|
|
|
{{end}}
|