MCPcopy Create free account
hub / github.com/docker/cli / Parse

Function Parse

templates/templates.go:65–67  ·  view source on GitHub ↗

Parse creates a new anonymous template with the basic functions and parses the given format.

(format string)

Source from the content-addressed store, hash-verified

63// Parse creates a new anonymous template with the basic functions
64// and parses the given format.
65func Parse(format string) (*template.Template, error) {
66 return template.New("").Funcs(basicFunctions).Parse(format)
67}
68
69// New creates a new empty template with the provided tag and built-in
70// template functions.

Callers 3

TestParseJSONFunctionsFunction · 0.70
TestParseStringFunctionsFunction · 0.70

Calls

no outgoing calls

Tested by 3

TestParseJSONFunctionsFunction · 0.56
TestParseStringFunctionsFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…