MCPcopy Create free account
hub / github.com/drone/envsubst / Parse

Function Parse

template.go:29–36  ·  view source on GitHub ↗

Parse creates a new shell format template and parses the template definition from string s.

(s string)

Source from the content-addressed store, hash-verified

27// Parse creates a new shell format template and parses the template
28// definition from string s.
29func Parse(s string) (t *Template, err error) {
30 t = new(Template)
31 t.tree, err = parse.Parse(s)
32 if err != nil {
33 return nil, err
34 }
35 return t, nil
36}
37
38// ParseFile creates a new shell format template and parses the template
39// definition from the named file.

Callers 2

EvalFunction · 0.70
ParseFileFunction · 0.70

Calls 1

ParseFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…