From 74803d86a370bb17e654cee21632c04524a4cc1c Mon Sep 17 00:00:00 2001 From: Manfred Touron Date: Thu, 1 Dec 2016 10:16:30 +0100 Subject: [PATCH] Fix type conversion issue with pointers --- vendor/github.com/moul/funcmap/funcmap.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/github.com/moul/funcmap/funcmap.go b/vendor/github.com/moul/funcmap/funcmap.go index 8ba0106..a4fe228 100644 --- a/vendor/github.com/moul/funcmap/funcmap.go +++ b/vendor/github.com/moul/funcmap/funcmap.go @@ -23,8 +23,8 @@ var FuncMap = template.FuncMap{ "split": strings.Split, "join": strings.Join, "title": strings.Title, - "unexport": func(v interface{}) string { - return fmt.Sprintf("%s%s", strings.ToLower(v.(string)[0:1]), v.(string)[1:]) + "unexport": func(input string) string { + return fmt.Sprintf("%s%s", strings.ToLower(input[0:1]), input[1:]) }, "lower": strings.ToLower, "upper": strings.ToUpper,