Browse Source

数组转字符串

main
klausY 5 years ago
parent
commit
2f2f310e0e
  1. 10
      QMPlusServer/tools/array_to_string.go

10
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)
}
Loading…
Cancel
Save