Skip to content

chore: modernize Go idioms via go fix#103

Merged
richardwooding merged 1 commit intomainfrom
chore/go-fix-modernize
Feb 24, 2026
Merged

chore: modernize Go idioms via go fix#103
richardwooding merged 1 commit intomainfrom
chore/go-fix-modernize

Conversation

@richardwooding
Copy link
Contributor

Summary

  • Apply go fix ./... to modernize the codebase to Go 1.24+ idioms
  • interface{}any (type alias, fully API-compatible)
  • for i := 0; i < N; i++for i := range N / for range N
  • Manual slice search loops → slices.Contains()
  • Manual max logic → max() builtin
  • All changes are mechanical, zero-risk modernizations applied by the Go toolchain

Test plan

  • go fix -diff ./... shows no remaining changes
  • make fmt — no formatting issues
  • make lint — 0 issues
  • make test — all tests pass with race detection (92.1% coverage)

🤖 Generated with Claude Code

Apply `go fix ./...` to modernize code to Go 1.24+ idioms:
- `interface{}` → `any`
- `for i := 0; i < N; i++` → `for i := range N` / `for range N`
- Manual slice search loops → `slices.Contains()`
- Manual `max` logic → `max()` builtin

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@richardwooding richardwooding merged commit 7039f25 into main Feb 24, 2026
9 checks passed
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