Skip to content

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

@SuperQ SuperQ requested review from discordianfish and pgier June 18, 2022 07:13
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>
jritter pushed a commit to jritter/procfs that referenced this pull request Jul 15, 2024
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.

3 participants