diff --git a/helpers/helpers.go b/helpers/helpers.go index 72d8aeb..fca4936 100644 --- a/helpers/helpers.go +++ b/helpers/helpers.go @@ -39,8 +39,8 @@ var ProtoHelpersFuncMap = template.FuncMap{ a, _ := json.MarshalIndent(v, "", " ") return string(a) }, - "splitArray": func(sep string, s string) []string { - var r []string + "splitArray": func(sep string, s string) []interface{} { + var r []interface{} t := strings.Split(s, sep) for i := range t { if t[i] != "" {