Skip to content

Conversation

@wolfeidau
Copy link
Member

@wolfeidau wolfeidau commented Oct 28, 2025

Description

Ran go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...

Context

I read a couple of posts about how to clean up an older codebase, I think we have used a few of these features but using an automated tool to spruce up the code seemed like a good idea.

Changes

The changes mostly center around for strings.SplitSeq and for b.Loop().

Testing

  • Tests have run locally (with go test ./...). Buildkite employees may check this if the pipeline has run automatically.
  • Code is formatted (with go fmt ./...)

Disclosures / Credits

I did not use AI tools at all

Ran `go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix -test ./...`
@wolfeidau wolfeidau marked this pull request as ready for review October 28, 2025 09:02
@DrJosh9000 DrJosh9000 self-requested a review October 28, 2025 22:39
Copy link
Contributor

@DrJosh9000 DrJosh9000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All features added in Go 1.24, so LGTM ✅

@wolfeidau wolfeidau merged commit fbbbc08 into main Oct 28, 2025
1 check passed
@wolfeidau wolfeidau deleted the chore_modernize_tidy branch October 28, 2025 23:55
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.

3 participants