原文来源于:https://www.yii666.com/article/542439.html
Different ways to concatenate two strings in Golang - GeeksforGeeks https://www.geeksforgeeks.org/different-ways-to-concatenate-two-strings-in-golang/文章地址https://www.yii666.com/article/542439.html网址:yii666.com<文章来源地址:https://www.yii666.com/article/542439.html
Golang拼接字符串的5种方法及其效率_Chrispink-CSDN博客_golang 字符串拼接效率 https://blog.csdn.net/m0_37422289/article/details/103362740文章来源地址https://www.yii666.com/article/542439.html网址:yii666.com
var buf bytes.Buffer
buf.WriteString(r)
buf.WriteString(s)
f := func(s string) string {
fmt.Println("START--", n())
r := s
for i := 0; i < 10241024; i++ {
r += s }
fmt.Println("END--", n()) return r
}