Home | History | Annotate | Download | only in util

Lines Matching refs:anchor

53 	// Anchor, if non-empty, is the URL fragment to use in anchor tags.
54 Anchor string
69 // Anchor, if non-empty, is the URL fragment to use in anchor tags.
70 Anchor string
342 anchor := sanitizeAnchor(firstSentence(comment))
343 if len(anchor) > 0 {
344 if _, ok := allAnchors[anchor]; ok {
345 return nil, fmt.Errorf("duplicate anchor: %s", anchor)
347 allAnchors[anchor] = struct{}{}
352 section.Anchor = anchor
404 anchor := sanitizeAnchor(name)
408 allAnchors[anchor] = struct{}{}
410 header.AllDecls[name] = anchor
416 Anchor: anchor,
463 anchor, isLink := allDecls[s[:i]]
465 ret += fmt.Sprintf("<a href=\"%s\">", template.HTMLEscapeString(anchor))
539 {{if .Anchor}}<li class="header"><a href="#{{.Anchor}}">{{.Preamble | firstSentence | html | markupPipeWords}}</a></li>{{end}}
541 {{if .Anchor}}<li><a href="#{{.Anchor}}"><tt>{{.Name}}</tt></a></li>{{end}}
549 <div class="section" {{if .Anchor}}id="{{.Anchor}}"{{end}}>
557 <div class="decl" {{if .Anchor}}id="{{.Anchor}}"{{end}}>
586 for name, anchor := range header.AllDecls {
587 allDecls[name] = fmt.Sprintf("%s#%s", header.Name+".html", anchor)