Canonical guidance

Use when

Avoid

Preferred pattern

var b strings.Builder
b.WriteString(prefix)
b.WriteString(name)
return b.String()

Anti-pattern

Explanation: This is tempting because builders sound efficient, but for small local cases they often add ceremony without helping clarity.

Why

Related pages

Sources