func ImplodeUint64Array (arr []uint64, char string) string {
result := ""
for _, i := range arr {
result += strconv.FormatUint(i, 10) + char
}
return strings.Trim(result,char)
}
func ImplodeUint64Array (arr []uint64, char string) string {
result := ""
for _, i := range arr {
result += strconv.FormatUint(i, 10) + char
}
return strings.Trim(result,char)
}
本文标题:go基础系列——go 数组转字符串
本文链接:https://www.haomeiwen.com/subject/vewpsctx.html
网友评论