chore: Go 1.26 modernization #1

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

Modernize Go 1.23-era patterns to Go 1.26 idioms.

  • Replace interface{} with any (5 occurrences)
  • fmt.Errorf(static)errors.New (33 occurrences)
  • sort.Sliceslices.SortFunc (4 occurrences)
  • math.Min/math.Maxmin()/max() builtins (6 occurrences)
  • C-style for → for i := range n (1 occurrence)
  • Sorted map keys → slices.Sorted(maps.Keys()) (2 occurrences)

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

Modernize Go 1.23-era patterns to Go 1.26 idioms. - Replace `interface{}` with `any` (5 occurrences) - `fmt.Errorf(static)` → `errors.New` (33 occurrences) - `sort.Slice` → `slices.SortFunc` (4 occurrences) - `math.Min`/`math.Max` → `min()`/`max()` builtins (6 occurrences) - C-style for → `for i := range n` (1 occurrence) - Sorted map keys → `slices.Sorted(maps.Keys())` (2 occurrences) All changes pass `go build` and `go vet`. No test files modified.
Charon added 6 commits 2026-02-24 16:42:49 +00:00
Charon merged commit 8f3722f7bd into main 2026-02-24 18:01:42 +00:00
Charon deleted branch chore/go-1.26-modernization 2026-02-24 18:01:43 +00:00
Sign in to join this conversation.
No description provided.