Skip to content

all: modernize and golangci-lint fixes - #1135

Merged
keegancsmith merged 1 commit into
mainfrom
k/automated-go-modernization
Aug 14, 2026
Merged

all: modernize and golangci-lint fixes#1135
keegancsmith merged 1 commit into
mainfrom
k/automated-go-modernization

Conversation

@keegancsmith

@keegancsmith keegancsmith commented Aug 14, 2026

Copy link
Copy Markdown
Member

This applies the validated rewrites suggested by modernize and golangci-lint, including standard-library helpers for reverse iteration and string manipulation, simpler formatting calls, and equivalent expression cleanup.

The most common mechanical change was seperated out to #1134

Note: one of the rewrites was incorrect and was not included: an unsafe reverse-loop rewrite

The current Go toolchain can express several loops and string operations more directly. Apply the validated automated rewrites while excluding promoted-field selectors and the unsafe index-loop transformation.

Amp-Thread-ID: https://ampcode.com/threads/T-019fff44-5b25-709a-a557-5b8daee9cf75
@keegancsmith keegancsmith changed the title refactor/go: adopt current standard library idioms all: modernize and golangci-lint fixes Aug 14, 2026
@keegancsmith
keegancsmith marked this pull request as ready for review August 14, 2026 09:23
@keegancsmith
keegancsmith merged commit a7f3fc0 into main Aug 14, 2026
7 checks passed
@keegancsmith
keegancsmith deleted the k/automated-go-modernization branch August 14, 2026 10:50
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.

2 participants