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

Remove deprecated ioutil.ReadAll #2119

Closed
pedromotita opened this issue Mar 8, 2024 · 0 comments · Fixed by #2120
Closed

Remove deprecated ioutil.ReadAll #2119

pedromotita opened this issue Mar 8, 2024 · 0 comments · Fixed by #2120

Comments

@pedromotita
Copy link
Contributor

Description

Replace ioutil.ReadAll with io.ReadAll.

Some tests in command_test.go use the ioutil.ReadAll function from io/ioutils package. This package is deprecated as of Go 1.16, and the documentation advises to replace it with io.ReadAll

References

pedromotita added a commit to pedromotita/cobra that referenced this issue Mar 8, 2024
ioutils.ReadAll is deprecated since Go 1.16. This commit replaces it with
io.ReadAll. See https://pkg.go.dev/io/ioutil\#ReadAll for reference

Issue spf13#2119
@pedromotita pedromotita changed the title Remove deprecated ioutils.ReadAll Remove deprecated ioutil.ReadAll Mar 8, 2024
marckhouzam pushed a commit that referenced this issue Mar 12, 2024
ioutils.ReadAll is deprecated since Go 1.16. This commit replaces it with
io.ReadAll. See https://pkg.go.dev/io/ioutil\#ReadAll for reference

Issue #2119
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 a pull request may close this issue.

1 participant