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}}
|
2011-08-12 11:06:32 -06:00
|
|
|
<a href="search?q={{url .}}" style="font-size:120%">{{html .}}</a>
|
2011-08-11 14:24:13 -06:00
|
|
|
{{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 .}}
|
2011-08-12 11:06:32 -06:00
|
|
|
<h3 id="Global_{{url_pkg .Pak.Path}}">package <a href="/{{url_pkg .Pak.Path}}">{{html .Pak.Name}}</a></h3>
|
|
|
|
{{range .Files}}
|
|
|
|
{{$path := url_src .File.Path}}
|
2011-08-11 14:24:13 -06:00
|
|
|
{{range .Groups}}
|
|
|
|
{{range .Infos}}
|
2011-08-12 11:06:32 -06:00
|
|
|
<a href="/{{$path}}?h={{url $SearchResult.Query}}#L{{infoLine .}}">{{$path}}:{{infoLine .}}</a>
|
|
|
|
{{infoSnippet .}}
|
2011-08-11 14:24:13 -06:00
|
|
|
{{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 .}}
|
2011-08-12 11:06:32 -06:00
|
|
|
<h3 id="Local_{{url_pkg .Pak.Path}}">package <a href="/{{url_pkg .Pak.Path}}">{{html .Pak.Name}}</a></h3>
|
|
|
|
{{range .Files}}
|
|
|
|
{{$path := url_src .File.Path}}
|
|
|
|
<a href="/{{$path}}?h={{url $SearchResult.Query}}">{{$path}}</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-12 11:06:32 -06:00
|
|
|
<th align="left" valign="top">{{infoKind .Kind}}</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}}
|
2011-08-12 11:06:32 -06:00
|
|
|
<a href="/{{$path}}?h={{url $SearchResult.Query}}#L{{infoLine .}}">{{infoLine .}}</a>
|
2011-08-11 14:24:13 -06:00
|
|
|
{{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}}
|
2011-08-12 11:06:32 -06:00
|
|
|
<h2 id="Textual">{{html $SearchResult.Found}} textual occurrences</h2>
|
2011-08-11 14:24:13 -06:00
|
|
|
{{else}}
|
2011-08-12 11:06:32 -06:00
|
|
|
<h2 id="Textual">More than {{html $SearchResult.Found}} textual occurrences</h2>
|
2010-12-12 14:13:07 -07:00
|
|
|
<p>
|
2011-08-12 11:06:32 -06:00
|
|
|
<span class="alert" style="font-size:120%">Not all files or lines containing "{{html $SearchResult.Query}}" 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-12 11:06:32 -06:00
|
|
|
{{range .}}
|
|
|
|
{{$path := url_src .Filename}}
|
2010-12-10 15:40:22 -07:00
|
|
|
<tr>
|
2010-12-12 14:13:07 -07:00
|
|
|
<td align="left" valign="top">
|
2011-08-12 11:06:32 -06:00
|
|
|
<a href="/{{$path}}?h={{url $SearchResult.Query}}">{{$path}}</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-12 11:06:32 -06:00
|
|
|
<th align="left" valign="top">{{len .Lines}}</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}}
|
2011-08-12 11:06:32 -06:00
|
|
|
<a href="/{{$path}}?h={{url $SearchResult.Query}}#L{{url .}}">{{html .}}</a>
|
2011-08-11 14:24:13 -06:00
|
|
|
{{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}}
|