aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2011-08-31 14:01:58 -0700
committerRobert Griesemer <gri@golang.org>2011-08-31 14:01:58 -0700
commit3f1269ff1ea56cd4d1608a2b6285d12b5b1dc7d2 (patch)
tree6b91e88ea7ef81f239e6f696a37154f99ed02041 /lib
parenta31f317a990ad663e24b3521a958705280c14733 (diff)
downloadgo-3f1269ff1ea56cd4d1608a2b6285d12b5b1dc7d2.tar.xz
godoc: more index size reduction
- KindRuns don't need to repeat SpotKind, it is stored in each Spot - removed extra indirection from FileRuns to KindRuns - slight reduction of written index size (~500KB) R=rsc CC=golang-dev https://golang.org/cl/4969052
Diffstat (limited to 'lib')
-rw-r--r--lib/godoc/search.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/godoc/search.html b/lib/godoc/search.html
index 36c34f54d8..9fdd6ddc37 100644
--- a/lib/godoc/search.html
+++ b/lib/godoc/search.html
@@ -26,7 +26,7 @@
{{range .Files}}
{{$src_html := srcLink .File.Path | html}}
{{range .Groups}}
- {{range .Infos}}
+ {{range .}}
<a href="/{{$src_html}}?h={{$query_url}}#L{{infoLine .}}">{{$src_html}}:{{infoLine .}}</a>
{{infoSnippet_html .}}
{{end}}
@@ -46,10 +46,10 @@
{{range .Groups}}
<tr>
<td width="25"></td>
- <th align="left" valign="top">{{infoKind_html .Kind}}</th>
+ <th align="left" valign="top">{{index . 0 | infoKind_html}}</th>
<td align="left" width="4"></td>
<td>
- {{range .Infos}}
+ {{range .}}
<a href="/{{$src_html}}?h={{$query_url}}#L{{infoLine .}}">{{infoLine .}}</a>
{{end}}
</td>