A source code linter that can be used to find code that will cause problems with Go's error wrapping scheme
248
stars
19
forks
source link
When argument repeated via explicit indexes in `fmt.Errorf`, fails error wrap check #21
Closed
salkrr closed 2 years ago
Examples:
Linting fails with the error:
non-wrapping format verb for fmt.Errorf. Use '%w' to format errors
.