You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
173 B

  1. package tools
  2. import (
  3. "fmt"
  4. "strings"
  5. )
  6. func ArrayToString(array []interface{}) string {
  7. return strings.Replace(strings.Trim(fmt.Sprint(array), "[]"), " ", ",", -1)
  8. }