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

Deprecated ioutil Package in node_config.go #2

Open
s-uryansh opened this issue Feb 21, 2025 · 0 comments
Open

Deprecated ioutil Package in node_config.go #2

s-uryansh opened this issue Feb 21, 2025 · 0 comments

Comments

@s-uryansh
Copy link

Hi,
I was going through the code in node_config.go and noticed that it's using the ioutil package, which has been deprecated in Go 1.16. The recommended replacements are:

os.ReadFile instead of ioutil.ReadFile
os.WriteFile instead of ioutil.WriteFile
os.Open instead of ioutil.ReadDir
io.NopCloser instead of ioutil.NopCloser
Updating this will help keep the code more maintainable and compatible with newer Go versions. Let me know if you need any help with the update!

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

No branches or pull requests

1 participant