type text/template/parse.FieldNode
12 uses
text/template/parse (current package)
node.go#L492: type FieldNode struct {
node.go#L499: func (t *Tree) newField(pos Pos, ident string) *FieldNode {
node.go#L500: return &FieldNode{tr: t, NodeType: NodeField, Pos: pos, Ident: strings.Split(ident[1:], ".")} // [1:] to drop leading period
node.go#L503: func (f *FieldNode) String() string {
node.go#L509: func (f *FieldNode) writeTo(sb *strings.Builder) {
node.go#L516: func (f *FieldNode) tree() *Tree {
node.go#L520: func (f *FieldNode) Copy() Node {
node.go#L521: return &FieldNode{tr: f.tr, NodeType: NodeField, Pos: f.Pos, Ident: append([]string{}, f.Ident...)}
text/template
exec.go#L461: case *parse.FieldNode:
exec.go#L532: func (s *state) evalFieldNode(dot reflect.Value, field *parse.FieldNode, args []parse.Node, final reflect.Value) reflect.Value {
exec.go#L802: case *parse.FieldNode:
exec.go#L911: case *parse.FieldNode:
 |
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. |