Re:Working with Errors in Go 1.13
by Vendan on Sunday October 20, 2019 @03:04AM
(#21302641)
One way to work around that is to use interfaces (https://play.golang.org/p/aAEAi8GvDkv), but either way, you are "shadowing" the type, and can no longer use the .TraceID in the second function cause it's just a plain error at that point.
[ Parent
| on HN ]
There are no comments on this comment yet.