New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
arrays of non-trivial builtins #61
Comments
I really like the fact that generated code uses basic types like
The accompanying methods would then look very similar to their scalar versions (see the principle here: https://play.golang.org/p/f715VAnArD) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Consider the element declaration below (note the "maxOccurs" attribute)
In Go, the ideal declaration for this type would be []time.Time. For scalar types, we can get away with converting a
*time.Time
to an*xsdDateTime
, a private type that we can attachMarshalXML/UnmarshalXML
methods to. This doesn't work with slice types: https://play.golang.org/p/ZAOS7gzcUk .Currently,
xsdgen
doesn't work at all for this scenario; it will generate code that tries to convert a*[]time.Time
to an*xsdDateTime
, which fails to compile.The text was updated successfully, but these errors were encountered: