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

chore: replace deprecated function #103

Merged
merged 3 commits into from
Oct 26, 2022
Merged

chore: replace deprecated function #103

merged 3 commits into from
Oct 26, 2022

Conversation

zemyblue
Copy link
Member

@zemyblue zemyblue commented Oct 26, 2022

Description

Replace deprecated functions since go 1.16 or 1.17.

  • ioutil.TempDir -> os.MkdirTemp
  • ioutil.ReadFile -> os.ReadFile
  • ioutil.WriteFile -> os.WriteFile
  • ioutil.TempFile -> os.CreateTemp

related: Finschia/finschia-sdk#694

Motivation and context

The io/ioutil has been deprecated since Go 1.16.

How has this been tested?

Screenshots (if appropriate):

Checklist:

  • I followed the contributing guidelines.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.

Signed-off-by: zemyblue <zemyblue@gmail.com>
Signed-off-by: zemyblue <zemyblue@gmail.com>
@0Tech
Copy link
Contributor

0Tech commented Oct 26, 2022

Refer: #102

CHANGELOG.md Outdated Show resolved Hide resolved
Co-authored-by: Youngtaek Yoon <noreply@yoon.anonaddy.me>
@zemyblue zemyblue requested a review from 0Tech October 26, 2022 07:56
@zemyblue zemyblue merged commit 11b4e03 into main Oct 26, 2022
@zemyblue zemyblue deleted the deprecate_ioutil branch October 26, 2022 09:38
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