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 io/ioutil with preferred packages #430

Conversation

FomalhautWeisszwerg
Copy link
Contributor

Summary

  • replace io/ioutil with preferred packages.
  • improve Makefile with Phony targets

Test results

Please see workflow logs.

Details

Replacing io/ioutil with preferred packages

Since Go 1.16, the io/ioutil package has been marked as deprecated. The functions provided by io/ioutil are now provided by io or os packages with no functionality change and now using these packages are preferred.

Improves of Makefile

To avoid a conflict with a file or directory of the same name and to improve performance, Phony Targets are used.

For more convenience, make clean, make clean-cache, and make distclean commands have been added.

Thank you for reviewing :-)

Since Go 1.16, the `io/ioutil` package has been marked as deprecated.
The functions provided by `io/ioutil` are now provided `io` or `os` packages.

To get more details, please see https://pkg.go.dev/io/ioutil#pkg-overview
@tonimelisma tonimelisma merged commit 637db4b into davidbyttow:master May 4, 2024
1 check passed
@coveralls
Copy link

Coverage Status

coverage: 73.558%. remained the same
when pulling 353ad49 on FomalhautWeisszwerg:replace_ioutil_with_preferred_packages
into 0a6a6fc on davidbyttow:master.

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

3 participants