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 deprecated 'io/ioutil' package with 'os' #133

Merged
merged 1 commit into from
Jan 8, 2024
Merged

Replace deprecated 'io/ioutil' package with 'os' #133

merged 1 commit into from
Jan 8, 2024

Conversation

alexandear
Copy link
Contributor

@alexandear alexandear commented Jan 6, 2024

This PR replaces the deprecated io/ioutil package with os:

  • ioutil.ReadDir replaced with os.ReadDir and additional code to obtain a list of fs.FileInfo (the code is pointed out in the doc);
  • ioutil.ReadFile replaced with os.ReadFile.

@otiai10
Copy link
Owner

otiai10 commented Jan 8, 2024

Fair enough. All green. Thank you!

@otiai10 otiai10 merged commit 9e8f096 into otiai10:main Jan 8, 2024
21 checks passed
@alexandear alexandear deleted the replace-deprecated-ioutil-with-os branch January 8, 2024 11:15
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.

2 participants