MCPcopy
hub / github.com/pquerna/ffjson / tplStr

Function tplStr

inception/template.go:53–60  ·  view source on GitHub ↗
(t *template.Template, data interface{})

Source from the content-addressed store, hash-verified

51}
52
53func tplStr(t *template.Template, data interface{}) string {
54 buf := bytes.Buffer{}
55 err := t.Execute(&buf, data)
56 if err != nil {
57 panic(err)
58 }
59 return buf.String()
60}

Callers 6

CreateUnmarshalJSONFunction · 0.85
handleFieldAddrFunction · 0.85
getArrayHandlerFunction · 0.85
getAllowTokensFunction · 0.85
getNumberHandlerFunction · 0.85
getGetInnerValueFunction · 0.85

Calls 2

StringMethod · 0.95
ExecuteMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…