Skip to content

Use strings.ReplaceAll and strings.Builder (#5) (#6)#72

Merged
jonbodner merged 1 commit intomasterfrom
modernize-strings
Feb 23, 2026
Merged

Use strings.ReplaceAll and strings.Builder (#5) (#6)#72
jonbodner merged 1 commit intomasterfrom
modernize-strings

Conversation

@jonbodner
Copy link
Copy Markdown
Owner

Replace strings.Replace(x, y, z, -1) with strings.ReplaceAll for clearer intent, and replace bytes.Buffer with strings.Builder for string assembly to avoid unnecessary []byte→string copies.

Replace strings.Replace(x, y, z, -1) with strings.ReplaceAll for clearer
intent, and replace bytes.Buffer with strings.Builder for string assembly
to avoid unnecessary []byte→string copies.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jonbodner jonbodner merged commit 1b5bcf4 into master Feb 23, 2026
1 check passed
@jonbodner jonbodner deleted the modernize-strings branch February 23, 2026 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant