summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-11-02 19:57:01 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-11-02 19:57:01 -0400
commit85db279e33804c118b019c5f1e7666798df3e1f5 (patch)
treedfccd3ba1710fbfc68942f61690b24ca6a3fb364 /src/util
parentb51a2c03985f09845e498ece625f5e8a309b6086 (diff)
better text-type detection
Diffstat (limited to 'src/util')
-rw-r--r--src/util/template.go16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/util/template.go b/src/util/template.go
deleted file mode 100644
index ec5ac18..0000000
--- a/src/util/template.go
+++ /dev/null
@@ -1,16 +0,0 @@
-package util
-
-import (
- "path"
- "strings"
- "text/template"
-)
-
-func NewTemplate(filenames ...string) *template.Template {
- return template.Must(template.New(path.Base(filenames[0])).
- Funcs(template.FuncMap{
- // Form input helpers
- "hasprefix": strings.HasPrefix,
- }).
- ParseFiles(filenames...))
-}