From c833301bd5fe72c27d7f560b0cb3cfb5929452b3 Mon Sep 17 00:00:00 2001 From: Shogo Iwano Date: Fri, 1 Dec 2017 01:40:46 +0900 Subject: [PATCH] Fix error on use pipeline after splitArray result --- helpers/helpers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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] != "" {