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
We in many situations want to have different deserialization depending on use case. We can for each such case introduce own struct, but if structure has child structures this task becomes tedious very quick.
Here idea is to have a way to define multiple views on the same structure. As precondition for structure to make it feasible most probably is implementation of Default interface.
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
-
We in many situations want to have different deserialization depending on use case. We can for each such case introduce own struct, but if structure has child structures this task becomes tedious very quick.
Here idea is to have a way to define multiple views on the same structure. As precondition for structure to make it feasible most probably is implementation of
Default
interface.Beta Was this translation helpful? Give feedback.
All reactions