diff --git a/helpers/helpers.go b/helpers/helpers.go index bb3437d..161fdba 100644 --- a/helpers/helpers.go +++ b/helpers/helpers.go @@ -40,7 +40,14 @@ var ProtoHelpersFuncMap = template.FuncMap{ return string(a) }, "splitArray": func(sep string, s string) []string { - return strings.Split(s, sep) + var r []string + t := strings.Split(s, sep) + for i := range t { + if t[i] != "" { + r = append(r, t[i]) + } + } + return r }, "first": func(a []string) string { return a[0]