Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Replace deprecation ioutil fucntions #456

Merged
merged 1 commit into from Jun 19, 2022
Merged

Replace deprecation ioutil fucntions #456

merged 1 commit into from Jun 19, 2022

Conversation

SuperQ
Copy link
Member

@SuperQ SuperQ commented Jun 18, 2022

Go 1.16 deprecated several io/ioutil functions.

  • ioutil.ReadFile -> os.ReadFile
  • ioutil.ReadAll -> io.ReadAll
  • ioutil.ReadDir -> os.ReadDir

Signed-off-by: SuperQ superq@gmail.com

Go 1.16 deprecated several `io/ioutil` functions.
* `ioutil.ReadFile` -> `os.ReadFile`
* `ioutil.ReadAll` -> `io.ReadAll`
* `ioutil.ReadDir` -> `os.ReadDir`

Signed-off-by: SuperQ <superq@gmail.com>
Copy link
Collaborator

@pgier pgier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SuperQ SuperQ merged commit 4ba3093 into master Jun 19, 2022
@SuperQ SuperQ deleted the superq/ioutil branch June 19, 2022 08:47
remijouannet pushed a commit to remijouannet/procfs that referenced this pull request Oct 20, 2022
Go 1.16 deprecated several `io/ioutil` functions.
* `ioutil.ReadFile` -> `os.ReadFile`
* `ioutil.ReadAll` -> `io.ReadAll`
* `ioutil.ReadDir` -> `os.ReadDir`

Signed-off-by: SuperQ <superq@gmail.com>
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.

None yet

2 participants