Fix error on use pipeline after splitArray result

This commit is contained in:
Shogo Iwano 2017-12-01 01:40:46 +09:00
parent 055b1a5a86
commit c833301bd5

View File

@ -39,8 +39,8 @@ var ProtoHelpersFuncMap = template.FuncMap{
a, _ := json.MarshalIndent(v, "", " ") a, _ := json.MarshalIndent(v, "", " ")
return string(a) return string(a)
}, },
"splitArray": func(sep string, s string) []string { "splitArray": func(sep string, s string) []interface{} {
var r []string var r []interface{}
t := strings.Split(s, sep) t := strings.Split(s, sep)
for i := range t { for i := range t {
if t[i] != "" { if t[i] != "" {