aboutsummaryrefslogtreecommitdiff
path: root/cmd/strings.go
diff options
context:
space:
mode:
authorJoe Richey joerichey@google.com <joerichey@google.com>2017-10-12 17:59:45 -0700
committerJoseph Richey <joerichey94@gmail.com>2017-10-19 02:22:25 -0700
commitb4299090c3e503ba0c49a6086b1a46c218ca45f4 (patch)
tree889adbf3da9616a5c6eaa783291e5f94c01955a2 /cmd/strings.go
parent921f1c977c4e0704f61e3a7c092d3a4317ab278c (diff)
Command, Context, command line splitting setup
Diffstat (limited to 'cmd/strings.go')
-rw-r--r--cmd/strings.go14
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)
- }
-}