Skip to content

refactor: replace deprecated patterns#373

Merged
HealthyBuilder merged 1 commit into
solana-foundation:mainfrom
sonicfromnewyoke:sonic/replace-deprecated-patterns-clean
Apr 6, 2026
Merged

refactor: replace deprecated patterns#373
HealthyBuilder merged 1 commit into
solana-foundation:mainfrom
sonicfromnewyoke:sonic/replace-deprecated-patterns-clean

Conversation

@sonicfromnewyoke
Copy link
Copy Markdown
Contributor

Problem

the codebase targets Go 1.24 but uses patterns deprecated or superseded in Go 1.16–1.22

Summary of Changes

no behavioral changes - every replacement is a drop-in alias or API-compatible successor.

  • ioutil.ReadAll -> io.ReadAll
  • sort.Slice -> slices.SortFunc
  • sort.SliceStable -> slices.SortStableFunc
  • interface{} -> any

@sonicfromnewyoke sonicfromnewyoke force-pushed the sonic/replace-deprecated-patterns-clean branch from 4a68e08 to d3e051d Compare April 6, 2026 08:59
@HealthyBuilder HealthyBuilder merged commit 4fad955 into solana-foundation:main Apr 6, 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.

2 participants