canonical / pebble

Take control of your internal daemons!
GNU General Public License v3.0
137 stars 52 forks source link

chore: remove deprecated functions now that we're on Go 1.16+ #375

Closed benhoyt closed 4 months ago

benhoyt commented 4 months ago

This replaces most deprecated functions with modern equivalents, now that we're using Go 1.16+:

Look at the commits individually if you want to see these separated out.

For reference, I found these usages with simple search, as well as the following staticcheck command (note that there are still some left that I didn't think worth updating):

$ staticcheck -checks SA1019 ./...