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-17 17:38:58 -06:00
|
|
|
{{$query_url := urlquery .Query}}
|
2011-08-11 14:24:13 -06:00
|
|
|
{{with .Alert}}
|
2009-10-27 11:34:31 -06:00
|
|
|
<p>
|
2011-08-12 16:43:10 -06:00
|
|
|
<span class="alert" style="font-size:120%">{{html .}}</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 22:00:16 -06:00
|
|
|
<a href="search?q={{urlquery .}}" 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-17 17:38:58 -06:00
|
|
|
{{$pkg_html := pkgLink .Pak.Path | html}}
|
|
|
|
<h3 id="Global_{{$pkg_html}}">package <a href="/{{$pkg_html}}">{{html .Pak.Name}}</a></h3>
|
2011-08-12 11:06:32 -06:00
|
|
|
{{range .Files}}
|
2011-08-17 17:38:58 -06:00
|
|
|
{{$src_html := srcLink .File.Path | html}}
|
2011-08-11 14:24:13 -06:00
|
|
|
{{range .Groups}}
|
|
|
|
{{range .Infos}}
|
2011-08-17 17:38:58 -06:00
|
|
|
<a href="/{{$src_html}}?h={{$query_url}}#L{{infoLine .}}">{{$src_html}}:{{infoLine .}}</a>
|
2011-08-12 16:43:10 -06:00
|
|
|
{{infoSnippet_html .}}
|
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-17 17:38:58 -06:00
|
|
|
{{$pkg_html := pkgLink .Pak.Path | html}}
|
|
|
|
<h3 id="Local_{{$pkg_html}}">package <a href="/{{$pkg_html}}">{{html .Pak.Name}}</a></h3>
|
2011-08-12 11:06:32 -06:00
|
|
|
{{range .Files}}
|
2011-08-17 17:38:58 -06:00
|
|
|
{{$src_html := srcLink .File.Path | html}}
|
|
|
|
<a href="/{{$src_html}}?h={{$query_url}}">{{$src_html}}</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 16:43:10 -06:00
|
|
|
<th align="left" valign="top">{{infoKind_html .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-17 17:38:58 -06:00
|
|
|
<a href="/{{$src_html}}?h={{$query_url}}#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}}
|
2011-08-12 16:43:10 -06:00
|
|
|
{{if $.Complete}}
|
|
|
|
<h2 id="Textual">{{html $.Found}} textual occurrences</h2>
|
2011-08-11 14:24:13 -06:00
|
|
|
{{else}}
|
2011-08-12 16:43:10 -06:00
|
|
|
<h2 id="Textual">More than {{html $.Found}} textual occurrences</h2>
|
2010-12-12 14:13:07 -07:00
|
|
|
<p>
|
2011-08-12 16:43:10 -06:00
|
|
|
<span class="alert" style="font-size:120%">Not all files or lines containing "{{html $.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 .}}
|
2011-08-17 17:38:58 -06:00
|
|
|
{{$src_html := srcLink .Filename | html}}
|
2010-12-10 15:40:22 -07:00
|
|
|
<tr>
|
2010-12-12 14:13:07 -07:00
|
|
|
<td align="left" valign="top">
|
2011-08-17 17:38:58 -06:00
|
|
|
<a href="/{{$src_html}}?h={{$query_url}}">{{$src_html}}</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-17 17:38:58 -06:00
|
|
|
<a href="/{{$src_html}}?h={{$query_url}}#L{{html .}}">{{html .}}</a>
|
2011-08-11 14:24:13 -06:00
|
|
|
{{end}}
|
2011-08-12 16:43:10 -06:00
|
|
|
{{if not $.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}}
|
2011-08-12 16:43:10 -06:00
|
|
|
{{if not $.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}}
|