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
I've got a doubt about if is possible to have methods on the dynamic structs built with this library. Or in other words, if the dynamic structs can implement a interface
Some light about it will be awesome
The text was updated successfully, but these errors were encountered:
I've tried many different approaches. Last one was by trying to attach anonymous field which implements some interface. Unfortunately, right now thats not possible: golang/go#23063
For now, I would suggest usage of ToStruct method from reader - it would be possible to map complete dynamic struct to some struct, which than implements some interface.
Nice piece of software you have here!
I've got a doubt about if is possible to have methods on the dynamic structs built with this library. Or in other words, if the dynamic structs can implement a interface
Some light about it will be awesome
The text was updated successfully, but these errors were encountered: