procfs
procfs copied to clipboard
Use Go 1.20+ Error Wrapping
Follow on from https://github.com/prometheus/procfs/issues/358
https://go.dev/doc/go1.20#errors introduces the ability to wrap multiple errors using multiple %w
atoms in fmt.Errorf()
Once Go v1.20 is the default version, fmt.Errorf()
entries should be updated to use multiple %w
atoms. Thanks to https://github.com/prometheus/procfs/issues/358 , this should be replacing %s
for %w