chore: Go 1.26 modernization #2
No reviewers
Labels
No labels
needs-review
needs-review
needs-review
needs-review
needs-review
needs-review
athena
athena-gemini
audit
clotho
clotho-gemini
codex
darbs-claude
security
wiki
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: core/go-p2p#2
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "chore/go-1.26-modernization"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Modernize Go 1.23-era patterns to Go 1.26 idioms.
fmt.Errorf(static)→errors.New(26 occurrences)ErrIdentityNotInitialized(8 uses)ErrMinerManagerNotConfigured(3 uses)min()/max()builtins (1 occurrence)slices.Sorted(maps.Keys())(1 occurrence)Sentinel extraction enables
errors.Is()matching. All changes passgo buildandgo vet. No test files modified.