mirror of
https://github.com/golang/go
synced 2024-11-19 07:54:43 -07:00
5c45e56898
- rename template funcs for better consistency and sort them into groups of related functionality - try to be more consistent with html vs url escaping R=r CC=golang-dev https://golang.org/cl/4887041
41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
QUERY
|
|
{{.Query}}
|
|
{{with .Alert}}
|
|
{{.}}
|
|
{{end}}{{/* .Alert */}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .Alt}}
|
|
DID YOU MEAN
|
|
{{range .Alts}} {{.}}
|
|
{{end}}{{end}}{{/* .Alts */}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .Hit}}{{with .Decls}}
|
|
PACKAGE-LEVEL DECLARATIONS
|
|
|
|
{{range .}}package {{.Pak.Name}}
|
|
{{range $File := .Files}}{{range .Groups}}{{range .Infos}} {{srcLink $File.File.Path}}:{{infoLine .}}{{end}}
|
|
{{end}}{{end}}{{/* .Files */}}
|
|
{{end}}{{end}}{{/* .Decls */}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{with .Others}}
|
|
LOCAL DECLARATIONS AND USES
|
|
|
|
{{range .}}package {{.Pak.Name}}
|
|
{{range $File := .Files}}{{range .Groups}}{{range .Infos}} {{srcLink $File.File.Path}}:{{infoLine .}}
|
|
{{end}}{{end}}{{end}}{{/* .Files */}}
|
|
{{end}}{{end}}{{/* .Others */}}{{end}}{{/* .Hit */}}{{/*
|
|
|
|
---------------------------------------
|
|
|
|
*/}}{{if .Textual}}{{if .Complete}}{{.Found}} TEXTUAL OCCURRENCES{{else}}MORE THAN {{.Found}} TEXTUAL OCCURRENCES{{end}}
|
|
|
|
{{range .Textual}}{{len .Lines}} {{srcLink .Filename}}
|
|
{{end}}{{if not .Complete}}... ...
|
|
{{end}}{{end}}
|