wire icon indicating copy to clipboard operation
wire copied to clipboard

refactor: replace deprecated `ioutil` with `io`/`os` equivalents

Open honeynil opened this issue 6 months ago • 1 comments

Changes

  • Replaced all deprecated ioutil functions with their io or os equivalents (supported since Go 1.16+).
  • Removed unused io/ioutil imports.
  • 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.

honeynil avatar Jun 19 '25 15:06 honeynil

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.

google-cla[bot] avatar Jun 19 '25 15:06 google-cla[bot]