diff options
Diffstat (limited to 'cmd/strings.go')
| -rw-r--r-- | cmd/strings.go | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/cmd/strings.go b/cmd/strings.go index 559c60c..16c80f2 100644 --- a/cmd/strings.go +++ b/cmd/strings.go @@ -18,17 +18,3 @@ */ package cmd - -import ( - "io" - "text/template" -) - -// ExecuteTemplate creates an anonymous template the text, and runs it with the -// provided writer and data. Panics if text has bad format or execution fails. -func ExecuteTemplate(w io.Writer, text string, data interface{}) { - tmpl := template.Must(template.New("").Parse(text)) - if err := tmpl.Execute(w, data); err != nil { - panic(err) - } -} |