I agree. That is what I settled on, basically. Thanks for the suggestion!
Will
On Fri, Dec 23, 2022 at 10:23 AM Brian Candler wrote:
>
> I don't know how a raw Go interface value would be usable in Javascript. As
> an alternative, would it be any good to use sprintf("%T", readErr) as the
> co
I don't know how a raw Go interface value would be usable in Javascript.
As an alternative, would it be any good to use sprintf("%T", readErr) as
the code, and readErr.Error() as the value? At least those are both strings.
https://go.dev/play/p/nd1FXUvD_zg
On Friday, 23 December 2022 at 14:33: