You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
format with %w
format with %v: err1: (code: 32, message: make an error), err2: (%!w(*main.Error=&{83 make another error}))
format with %w: err1: (code: 32, message: make an error), err2: (code: 83, message: make another error)
wrap errors
<nil>
The text was updated successfully, but these errors were encountered:
If the format specifier includes a %w verb with an error operand, the returned error will implement an Unwrap method returning the operand. It is invalid to include more than one %w verb or to supply it with an operand that does not implement the error interface. The %w verb is otherwise a synonym for %v.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://play.golang.org/p/NLhAo_KxfFO
What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: