Skip to content

Conversation

@alexandear
Copy link
Contributor

@alexandear alexandear commented Sep 12, 2023

Summary

This PR replaces function usages from io/ioutil with the same functions from io and os.

Changes

  • replace ioutil.ReadFile with os.ReadFile
  • replace ioutil.ReadAll with io.ReadAll

Motivation

io/ioutil is deprecated:

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.

Related issues

#1305 #1386 #1407

@dolmen dolmen added the internal/refactor Refactor internals with no external visible changes label Sep 25, 2023
@dolmen
Copy link
Collaborator

dolmen commented Oct 10, 2023

Duplicate of #1407.

@dolmen dolmen closed this Oct 10, 2023
@alexandear
Copy link
Contributor Author

@dolmen #1407 is unmerged and closed. That's why I created the PR.

Also, #1407's changes are not full. We need to modify two files with ioutil import but #1407 PR modifies only one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal/refactor Refactor internals with no external visible changes rejected/duplicate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants