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
Would like to reopen this... I highly advocate getting rid of the interface here and just sticking with a struct.
Also found in relation to this issue: #100
I suggest closing this issue, since this seems to be exactly what #100 is about.
The core team won't have any capacity to resolve this issue any time soon, but we're happy to review a proposal and a PR. @mg98, would you mind commenting on #100 how exactly you'd like to solve this, so we can get the discussion going?
I'm having trouble to unmarshal JSONs to structs that include
Multiaddr
fields.json: cannot unmarshal string into Go struct field .a of type multiaddr.Multiaddr
Go Playground
I think it can be further minimized to unmarshaling only the string itself:
Here I'm getting
json: cannot unmarshal string into Go value of type multiaddr.Multiaddr
.I see implementations of json marshaling in
ma.Multiaddr
, so I wonder if I'm doing something wrong?The text was updated successfully, but these errors were encountered: