procfs icon indicating copy to clipboard operation
procfs copied to clipboard

Use Go 1.20+ Error Wrapping

Open conallob opened this issue 1 year ago • 0 comments

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

conallob avatar May 15 '23 12:05 conallob