When concatenating many strings, use strings.Builder for better performance:
var b strings.Builder
for i := 0; i < 1000; i++ {
b.WriteString("hello ")
}
result := b.String()
Builder accumulates content in a buffer and creates the final string only when you call String(). This avoids creating thousands of intermediate strings like + would.