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
Because encode/xml discards anything that isn't handled explicitly, unexpected changes would result in lost data. Golang provides the ,any and ,any,attr tags to handle elements that aren't explicitly mapped. Adding an argument to the binary like -support-unexpected-elements could be used to insert an array of interface{} on each generated struct with the any struct tag. This could allow the caller to check it at runtime and used to notify support of the need to scan files containing unexpected elements and regenerate structs.
The text was updated successfully, but these errors were encountered:
Because encode/xml discards anything that isn't handled explicitly, unexpected changes would result in lost data. Golang provides the
,any
and,any,attr
tags to handle elements that aren't explicitly mapped. Adding an argument to the binary like-support-unexpected-elements
could be used to insert an array ofinterface{}
on each generated struct with theany
struct tag. This could allow the caller to check it at runtime and used to notify support of the need to scan files containing unexpected elements and regenerate structs.The text was updated successfully, but these errors were encountered: