chore: Go 1.26 modernization #5

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

Modernize Go 1.23-era patterns to Go 1.26 idioms.

  • fmt.Errorf(static)errors.New (44 occurrences)
  • Extract repeated sentinel errors to package-level vars:
    • errBridgeNotAvailable (10 uses)
    • errNotConnected (8 uses)
    • errSelectorRequired (4 uses)
    • errIDEmpty (4 uses)

Sentinel extraction enables errors.Is() matching for callers. 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` (44 occurrences) - Extract repeated sentinel errors to package-level vars: - `errBridgeNotAvailable` (10 uses) - `errNotConnected` (8 uses) - `errSelectorRequired` (4 uses) - `errIDEmpty` (4 uses) Sentinel extraction enables `errors.Is()` matching for callers. All changes pass `go build` and `go vet`. No test files modified.
Charon added 2 commits 2026-02-24 16:42:52 +00:00
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
chore: extract repeated sentinel errors to package vars
Some checks failed
Test / test (pull_request) Failing after 1m34s
Security Scan / security (pull_request) Failing after 11m52s
ee873fcab4
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Charon merged commit 42dabde28f into main 2026-02-24 18:01:43 +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.