123456789101112131415161718192021 |
- package util
- import (
- "strconv"
- "strings"
- )
- func Int32SliceToString(slice []int32, sep string) string {
- var builder strings.Builder
- for i, v := range slice {
- if i > 0 {
- builder.WriteString(sep)
- }
-
- builder.WriteString(strconv.FormatInt(int64(v), 10))
- }
- return builder.String()
- }
|