Merge pull request #78 from shiwano/split-array

Fix error on use pipeline after splitArray result
This commit is contained in:
Manfred Touron 2017-12-19 08:57:29 +01:00 committed by GitHub
commit ccffd8bfe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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] != "" {