MCPcopy Create free account
hub / github.com/CloudyKit/jet / newText

Method newText

constructors.go:69–71  ·  view source on GitHub ↗
(pos Pos, text string)

Source from the content-addressed store, hash-verified

67}
68
69func (t *Template) newText(pos Pos, text string) *TextNode {
70 return &TextNode{NodeBase: NodeBase{TemplatePath: t.Name, NodeType: NodeText, Pos: pos}, Text: []byte(text)}
71}
72
73func (t *Template) newPipeline(pos Pos, line int) *PipeNode {
74 return &PipeNode{NodeBase: NodeBase{TemplatePath: t.Name, NodeType: NodePipe, Pos: pos, Line: line}}

Callers 1

textOrActionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected