Skip to content

Conversation

@sebrandon1
Copy link
Member

ioutil has been deprecated since Go 1.16: https://go.dev/doc/go1.16#ioutil

Tracking issue: redhat-best-practices-for-k8s/telco-bot#52

Migration from ioutil to os:

  • Replaced ioutil.ReadDir with os.ReadDir for reading directory contents in generator.go.
  • Replaced ioutil.WriteFile with os.WriteFile for writing files in generator.go.
  • Replaced ioutil.ReadFile with os.ReadFile for reading files in rpm.go.
  • Updated import statements to remove ioutil and add os where necessary in both generator.go and rpm.go. [1] [2]

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.

1 participant