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 #1621

Merged
merged 3 commits into from Apr 14, 2022
Merged

Update to benefit from Go 1.16 #1621

merged 3 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
    one case.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Apr 13, 2022
    Copy the full SHA
    4811c07 View commit details
    Browse the repository at this point in the history
  2. Extract four copies of the same loop into a function

    Should not change behavior.
    
    Signed-off-by: Miloslav Trmač <mitr@redhat.com>
    mtrmac committed Apr 13, 2022
    Copy the full SHA
    23a4605 View commit details
    Browse the repository at this point in the history
  3. 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
    d9d3cec View commit details
    Browse the repository at this point in the history