Initial version of user reconciliation loop and seed jobs

This commit is contained in:
antoniaklja
2018-12-19 22:40:08 +01:00
parent 7e64f2f06e
commit 4c8e61624e
22 changed files with 622 additions and 44 deletions
+16
View File
@@ -0,0 +1,16 @@
package render
import (
"bytes"
"text/template"
)
// Render executes a parsed template (go-template) with configuration from data
func Render(template *template.Template, data interface{}) (string, error) {
var buffer bytes.Buffer
if err := template.Execute(&buffer, data); err != nil {
return "", err
}
return buffer.String(), nil
}