Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove deprecated io/ioutil package from the source code #806

Closed
alexandear opened this issue Mar 17, 2023 · 1 comment · Fixed by #825
Closed

Remove deprecated io/ioutil package from the source code #806

alexandear opened this issue Mar 17, 2023 · 1 comment · Fixed by #825
Assignees

Comments

@alexandear
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Package io/ioutil deprecated since Go 1.16:

Deprecated: As of Go 1.16, the same functionality is now provided by package io or package os,
and those implementations should be preferred in new code.
See the specific function documentation for details.

Describe the solution you'd like

  • Replace ioutil.Discard with io.Discard.
  • Replace ioutil.ReadFile, ioutil.WriteFile, ioutil.ReadDir with os.ReadFile, os.WriteFile, os.ReadDir.
@mgechev
Copy link
Owner

mgechev commented May 15, 2023

Opened #825 and will merge once @chavacava approves.

@mgechev mgechev self-assigned this May 16, 2023
chavacava pushed a commit that referenced this issue May 16, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants