chore: Go 1.26 modernization #2

Merged
Charon merged 4 commits from chore/go-1.26-modernization into main 2026-02-24 18:01:47 +00:00
Member

Modernize Go 1.23-era patterns to Go 1.26 idioms.

  • fmt.Errorf(static)errors.New (1 occurrence)
  • sort.Sliceslices.SortFunc/slices.Sort (3 occurrences)
  • C-style for → for i := range n (7 occurrences)
  • Sorted map keys → slices.Sorted(maps.Keys()) (1 occurrence)

All changes pass go build and go vet. No test files modified.

Modernize Go 1.23-era patterns to Go 1.26 idioms. - `fmt.Errorf(static)` → `errors.New` (1 occurrence) - `sort.Slice` → `slices.SortFunc`/`slices.Sort` (3 occurrences) - C-style for → `for i := range n` (7 occurrences) - Sorted map keys → `slices.Sorted(maps.Keys())` (1 occurrence) All changes pass `go build` and `go vet`. No test files modified.
Charon added 4 commits 2026-02-24 16:42:57 +00:00
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
chore: use slices.Sorted(maps.Keys()) for ordered iteration
All checks were successful
Security Scan / security (pull_request) Successful in 13s
Test / Vet & Build (pull_request) Successful in 39s
eeec1fe372
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Charon merged commit c1baeb9254 into main 2026-02-24 18:01:47 +00:00
Charon deleted branch chore/go-1.26-modernization 2026-02-24 18:01:47 +00:00
Sign in to join this conversation.
No description provided.