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,