MCPcopy Create free account
hub / github.com/canopyclimate/golive / StringNode

Struct StringNode

internal/text/template/parse/node.go:781–787  ·  view source on GitHub ↗

StringNode holds a string constant. The value has been "unquoted".

Source from the content-addressed store, hash-verified

779
780// StringNode holds a string constant. The value has been "unquoted".
781type StringNode struct {
782 NodeType
783 Pos
784 tr *Tree
785 Quoted string // The original text of the string, with quotes.
786 Text string // The string, after quote processing.
787}
788
789func (t *Tree) newString(pos Pos, orig, text string) *StringNode {
790 return &StringNode{tr: t, NodeType: NodeString, Pos: pos, Quoted: orig, Text: text}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected