Browse Source

Merge remote-tracking branch 'origin/master'

pixel 5 years ago
parent
commit
b7f6eaf6ed
1 changed files with 10 additions and 0 deletions
  1. 10 0
      QMPlusServer/tools/array_to_string.go

+ 10 - 0
QMPlusServer/tools/array_to_string.go

@@ -0,0 +1,10 @@
+package tools
+
+import (
+	"fmt"
+	"strings"
+)
+
+func ArrayToString(array []interface{}) string {
+	return strings.Replace(strings.Trim(fmt.Sprint(array), "[]"), " ", ",", -1)
+}