MCPcopy Index your code
hub / github.com/netdata/netdata / parseTemplate

Function parseTemplate

src/go/plugin/framework/chartengine/template_parse.go:12–20  ·  view source on GitHub ↗
(raw string)

Source from the content-addressed store, hash-verified

10)
11
12func parseTemplate(raw string) (program.Template, error) {
13 tpl := program.Template{
14 Raw: strings.TrimSpace(raw),
15 }
16 if tpl.Raw == "" {
17 return tpl, fmt.Errorf("template cannot be empty")
18 }
19 return tpl, nil
20}

Callers 3

compileChartMethod · 0.70
compileDimensionFunction · 0.70

Calls 1

ErrorfMethod · 0.65

Tested by 1

Used in the wild real call sites across dependent graphs

searching dependent graphs…