3 ms·
One extra tip when wrapping error return values is to use the wrapcheck (https://golangci-lint.run/usage/linters/#wrapcheck https://golangci-lint.run/usage/lin
by alecthomas 5y ago
One extra tip when wrapping error return values is to use the
wrapcheck (https://golangci-lint.run/usage/linters/#wrapcheck https://golangci-lint.run/usage/linters/#wrapcheck) linter. This will tell you when you're returning an error without wrapping it.