text/template/parse.TextNode.Text (field)
13 uses
text/template/parse (current package)
node.go#L130: Text []byte // The text; may span newlines.
node.go#L134: return &TextNode{tr: t, NodeType: NodeText, Pos: pos, Text: []byte(text)}
node.go#L138: return fmt.Sprintf(textFormat, t.Text)
node.go#L150: return &TextNode{tr: t.tr, NodeType: NodeText, Pos: t.Pos, Text: append([]byte{}, t.Text...)}
parse.go#L283: return len(bytes.TrimSpace(n.Text)) == 0
text/template
exec.go#L271: if _, err := s.wr.Write(node.Text); err != nil {
github.com/google/safehtml/template
escape.go#L581: s, written, i, b := n.Text, 0, 0, new(bytes.Buffer)
escape.go#L647: b.Write(n.Text[written:])
escape.go#L770: n.Text = s
html/template
escape.go#L649: s, written, i, b := n.Text, 0, 0, new(bytes.Buffer)
escape.go#L708: b.Write(n.Text[written:])
escape.go#L823: n.Text = s
 |
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. |