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 have a problem when I try to scan a composite type into a generic struct containing the corresponding composite type in golang. For example I have a general Nullable struct and IdAndName:
Since the IdAndName struct is registered it is scanned properly but when I use it in Nullable it currently needs to be handled manually. What can I do from here? Do I need to register a Codec for every corresponding composite type struct to be able to scan?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I have a problem when I try to scan a composite type into a generic struct containing the corresponding composite type in golang. For example I have a general
Nullablestruct andIdAndName:Since the
IdAndNamestruct is registered it is scanned properly but when I use it inNullableit currently needs to be handled manually. What can I do from here? Do I need to register a Codec for every corresponding composite type struct to be able to scan?Beta Was this translation helpful? Give feedback.
All reactions