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

Update to benefit from Go 1.16 #1521

Merged
merged 2 commits into from Apr 14, 2022
Merged

Update to benefit from Go 1.16 #1521

merged 2 commits into from Apr 14, 2022

Commits on Apr 13, 2022

  1. Update users of deprecated io/ioutil

    Mostly just name changes that should not change behavior,
    apart from ioutil.ReadDir -> os.ReadDir avoiding per-item
    lstat(2) in some cases.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Apr 13, 2022
    Copy the full SHA
    7152f88 View commit details
    Browse the repository at this point in the history
  2. Use filepath.WalkDir instead of filepath.Walk

    ... to optimize away some lstat(2) calls.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Apr 13, 2022
    Copy the full SHA
    f6e5415 View commit details
    Browse the repository at this point in the history