Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
encoding/xml: simple use of EncodeToken fails #11719
https://play.golang.org/p/DnUU5PWitz should not say 'empty buffer' unless I am very confused about how this package works.
EncodeToken expects a value, not a pointer. There is no default case in the type switch, that's why a token with a "wrong" type is just ignored. We have different solutions to fix this:
Submitting a CL to implement option 2, to be changed if another behavior is preferred.