encoding/json: ignores omitempty when multiple parameters used #14283
Labels
Milestone
Comments
Go's encoding of that zero-value struct with I'm not sure it's the correct thing to interpret |
Yeah, it looks like this is working as intended. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It's supposed to prioritize omitempty before the string type. Instead, it prioritizes string and attempts to parse the value regardless of whether an empty value
https://play.golang.org/p/Mq2eW3IR0A
The text was updated successfully, but these errors were encountered: