golang-im聊天
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

20 行
308 B

  1. package util
  2. import (
  3. "strconv"
  4. "strings"
  5. )
  6. func In(ids []int64) string {
  7. build := strings.Builder{}
  8. build.WriteString("(")
  9. for i := range ids {
  10. build.WriteString(strconv.FormatInt(ids[i], 10))
  11. if i != len(ids)-1 {
  12. build.WriteString(",")
  13. }
  14. }
  15. build.WriteString(")")
  16. return build.String()
  17. }