text/template/parse.FieldNode.Ident (field)
12 uses
text/template/parse (current package)
node.go#L391: Ident []string // Variable name and fields in lexical order.
node.go#L395: return &VariableNode{tr: t, NodeType: NodeVariable, Pos: pos, Ident: strings.Split(ident, ".")}
node.go#L405: for i, id := range v.Ident {
node.go#L418: return &VariableNode{tr: v.tr, NodeType: NodeVariable, Pos: v.Pos, Ident: append([]string{}, v.Ident...)}
parse.go#L748: if varName == v.Ident[0] {
parse.go#L752: t.errorf("undefined variable %q", v.Ident[0])
text/template
exec.go#L444: s.setVar(variable.Ident[0], value)
exec.go#L446: s.push(variable.Ident[0], value)
exec.go#L553: value := s.varValue(variable.Ident[0])
exec.go#L554: if len(variable.Ident) == 1 {
exec.go#L558: return s.evalFieldChain(dot, value, variable, variable.Ident[1:], args, final)
 |
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. |