-
Notifications
You must be signed in to change notification settings - Fork 18k
encoding/xml: panic: reflect: Index out of range #69949
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
Comments
Issue #16497 seems to have the same problem that I have, It worked flipping the Working example https://go.dev/play/p/EMAgchRIE4y |
Duplicate of #16497 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Go version
go version go1.23.2 linux/amd64
Output of
go env
in your module/workspace:What did you do?
Tried to unmarshal a xml document to a struct
Somehow I cannot reproduce the panic with a minimal reproducible program, so I'm gonna copy and paste part of the original code:
https://go.dev/play/p/8fc1X8qJOXt
What did you see happen?
Got following panic message:
What did you expect to see?
Unmarshal the document:
To the struct:
And not to panic.
The text was updated successfully, but these errors were encountered: