wire
wire copied to clipboard
refactor: replace deprecated `ioutil` with `io`/`os` equivalents
Changes
- Replaced all deprecated
ioutilfunctions with theirioorosequivalents (supported since Go 1.16+). - Removed unused
io/ioutilimports. - Verified that tests pass (
go test ./...).
Motivation
The ioutil package is deprecated as of Go 1.16 (see Go 1.16 release notes).
This change follows the official migration guidance to modernize the codebase.
Testing
- All existing tests pass.
- Manually verified the changes in a sample project.
Notes
This is a backward-compatible change since io/os equivalents exist in all supported Go versions.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.