From b4299090c3e503ba0c49a6086b1a46c218ca45f4 Mon Sep 17 00:00:00 2001 From: "Joe Richey joerichey@google.com" Date: Thu, 12 Oct 2017 17:59:45 -0700 Subject: Command, Context, command line splitting setup --- cmd/strings.go | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'cmd/strings.go') 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) - } -} -- cgit v1.3