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

utils.go 308 B

12345678910111213141516171819
  1. package utils
  2. import (
  3. "fmt"
  4. "strings"
  5. "gitlink.org.cn/cloudream/common/pkgs/ioswitch/exec"
  6. )
  7. func FormatVarIDs(arr []exec.VarID) string {
  8. sb := strings.Builder{}
  9. for i, v := range arr {
  10. sb.WriteString(fmt.Sprintf("%v", v))
  11. if i < len(arr)-1 {
  12. sb.WriteString(",")
  13. }
  14. }
  15. return sb.String()
  16. }