mirror of
https://github.com/golang/go
synced 2024-11-20 02:54:39 -07:00
e3fd2e1ec6
- sort by package name (instead of package path) for results with snippets - sort line numbers in results without snippets - properly characterize package clauses - experiment with a leaner look: no underlines for top-level godoc links in the left side bar Still using colors to distinguish results. Next step. R=rsc http://go/go-review/1015016
66 lines
1.6 KiB
HTML
66 lines
1.6 KiB
HTML
<!--
|
|
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.
|
|
-->
|
|
|
|
{.section Accurate}
|
|
{.or}
|
|
<p>
|
|
<span class="alert" style="font-size:120%">Indexing in progress - result may be inaccurate</span>
|
|
</p>
|
|
{.end}
|
|
{.section Alt}
|
|
<p>
|
|
<span class="alert" style="font-size:120%">Did you mean: </span>
|
|
{.repeated section Alts}
|
|
<a href="search?q={@|html}" style="font-size:120%">{@|html}</a>
|
|
{.end}
|
|
</p>
|
|
{.end}
|
|
{.section Hit}
|
|
{.section Decls}
|
|
<h2>Package-level declarations</h2>
|
|
{.repeated section @}
|
|
<h3>package {Pak.Name|html}</h3>
|
|
{.repeated section Files}
|
|
{.repeated section Infos}
|
|
<a href="{File.Path|html}?h={Query|html}#L{@|infoLine}" class="noline">{File.Path|html}:{@|infoLine}</a>
|
|
<pre>{@|infoSnippet}</pre>
|
|
{.end}
|
|
{.end}
|
|
{.end}
|
|
{.end}
|
|
{.section Others}
|
|
<h2>Local declarations and uses</h2>
|
|
<p>
|
|
Legend:
|
|
{.repeated section Legend}
|
|
<a class="{@}">{@}</a>
|
|
{.end}
|
|
</p>
|
|
{.repeated section @}
|
|
<h3>package {Pak.Name|html}</h3>
|
|
<table border="0" cellspacing="2">
|
|
{.repeated section Files}
|
|
<tr>
|
|
<td valign="top">
|
|
<a href="{File.Path|html}?h={Query|html}" class="noline">{File.Path|html}:</a>
|
|
</td>
|
|
<td>
|
|
{.repeated section Infos}
|
|
<a href="{File.Path|html}?h={Query|html}#L{@|infoLine}" class="{@|infoClass}">{@|infoLine}</a>
|
|
{.end}
|
|
</td>
|
|
</tr>
|
|
{.end}
|
|
</table>
|
|
{.end}
|
|
{.end}
|
|
{.or}
|
|
<p>
|
|
A legal query is a single identifier (such as <a href="search?q=ToLower">ToLower</a>)
|
|
or a qualified identifier (such as <a href="search?q=math.Sin">math.Sin</a>).
|
|
</p>
|
|
{.end}
|