mirror of
https://github.com/golang/go
synced 2024-11-06 06:16:12 -07:00
a28efa5d8c
The display of search results can now be changed. A slice of functions for displaying the results can now be provided. By default, three functions are provided to display documentation, source code, and textual results. This makes it possible to replace them with equivalents that, say, obtain search results from alternative source code search engines. R=bradfitz, adg CC=golang-codereviews https://golang.org/cl/43470043
19 lines
458 B
HTML
19 lines
458 B
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.
|
|
-->
|
|
{{with .Alert}}
|
|
<p>
|
|
<span class="alert" style="font-size:120%">{{html .}}</span>
|
|
</p>
|
|
{{end}}
|
|
{{with .Alt}}
|
|
<p>
|
|
<span class="alert" style="font-size:120%">Did you mean: </span>
|
|
{{range .Alts}}
|
|
<a href="search?q={{urlquery .}}" style="font-size:120%">{{html .}}</a>
|
|
{{end}}
|
|
</p>
|
|
{{end}}
|