text/template/parse.TemplateNode.Name (field)
12 uses
text/template/parse (current package)
node.go#L942: Name string // The name of the template (unquoted).
node.go#L947: return &TemplateNode{tr: t, NodeType: NodeTemplate, Pos: pos, Line: line, Name: name, Pipe: pipe}
node.go#L958: sb.WriteString(strconv.Quote(t.Name))
node.go#L971: return t.tr.newTemplate(t.Pos, t.Line, t.Name, t.Pipe.CopyPipe())
text/template
exec.go#L404: tmpl := s.tmpl.tmpl[t.Name]
exec.go#L406: s.errorf("template %q not defined", t.Name)
github.com/google/safehtml/template
escape.go#L449: c, name := e.escapeTree(c, n, n.Name, n.Line)
escape.go#L450: if name != n.Name {
escape.go#L767: n.Name = name
html/template
escape.go#L538: c, name := e.escapeTree(c, n, n.Name, n.Line)
escape.go#L539: if name != n.Name {
escape.go#L820: n.Name = name
 |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |