summaryrefslogtreecommitdiff
path: root/pkg/bindings/internal/util/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/bindings/internal/util/util.go')
-rw-r--r--pkg/bindings/internal/util/util.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/bindings/internal/util/util.go b/pkg/bindings/internal/util/util.go
index bcf6959f2..f8f99d6c1 100644
--- a/pkg/bindings/internal/util/util.go
+++ b/pkg/bindings/internal/util/util.go
@@ -104,3 +104,11 @@ func ToParams(o interface{}) (url.Values, error) {
}
return params, nil
}
+
+func MapToArrayString(data map[string]string) []string {
+ l := make([]string, 0)
+ for k, v := range data {
+ l = append(l, k+"="+v)
+ }
+ return l
+}