add analysis coordination (with dummy analyzer)

This commit is contained in:
Alex Goodman
2020-05-18 11:59:33 -04:00
parent 4cbed05358
commit 1342cc5b06
13 changed files with 260 additions and 161 deletions
+16
View File
@@ -0,0 +1,16 @@
package internal
import (
"bytes"
"text/template"
)
// Tprintf renders a string from a given template string and field values
func Tprintf(tmpl string, data map[string]interface{}) string {
t := template.Must(template.New("").Parse(tmpl))
buf := &bytes.Buffer{}
if err := t.Execute(buf, data); err != nil {
return ""
}
return buf.String()
}