MCPcopy
hub / github.com/kopia/kopia / ParseTemplate

Function ParseTemplate

notification/notifytemplate/embeddedtemplate.go:134–137  ·  view source on GitHub ↗

ParseTemplate parses a named template.

(tmpl string, opt Options)

Source from the content-addressed store, hash-verified

132
133// ParseTemplate parses a named template.
134func ParseTemplate(tmpl string, opt Options) (*template.Template, error) {
135 //nolint:wrapcheck
136 return template.New("template").Funcs(functions(opt)).Parse(tmpl)
137}

Callers 3

SendToFunction · 0.92
verifyTemplateFunction · 0.92
launchEditorMethod · 0.92

Calls 2

functionsFunction · 0.85
ParseMethod · 0.80

Tested by 1

verifyTemplateFunction · 0.74