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

Function parseTemplate

src/toolchain.go:403–415  ·  view source on GitHub ↗
(content string, tmpMap map[string]interface{})

Source from the content-addressed store, hash-verified

401}
402
403func parseTemplate(content string, tmpMap map[string]interface{}) (result string) {
404
405 t := template.Must(template.New("template").Parse(content))
406
407 var tpl bytes.Buffer
408
409 if err := t.Execute(&tpl, tmpMap); err != nil {
410 ShowError(err, 0)
411 }
412 result = tpl.String()
413
414 return
415}
416
417func indexOfString(element string, data []string) int {
418

Callers 1

WebFunction · 0.85

Calls 1

ShowErrorFunction · 0.85

Tested by

no test coverage detected