If you’re dealing with strings golang and performance matters, benchmark! `testing.B` is your friend.
Sometimes `bytes.Buffer` is faster than `strings.Builder` for weird edge cases. Worth testing.
Also, `strings.TrimSpace` is a lifesaver for cleaning up user input.
Tool rec: https://pkg.go.dev/strings. Official docs are surprisingly readable.
Sometimes `bytes.Buffer` is faster than `strings.Builder` for weird edge cases. Worth testing.
Also, `strings.TrimSpace` is a lifesaver for cleaning up user input.
Tool rec: https://pkg.go.dev/strings. Official docs are surprisingly readable.
