Initial commit

This commit is contained in:
yan.y
2024-03-27 23:25:08 +08:00
commit 0884384e91
127 changed files with 9353 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
package arr
import "strconv"
// 连接 unit slice 为字符串
func UnitJoin(ss []uint, sep string) string {
var rs string
for index, item := range ss {
itemS := strconv.FormatUint(uint64(item), 10)
if index < len(ss)-1 {
rs += itemS + sep
} else {
rs += itemS
}
}
return rs
}