Fix error on use pipeline after splitArray result
This commit is contained in:
parent
055b1a5a86
commit
c833301bd5
@ -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] != "" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user