Closed
Description
In both the standard and experimental json
libraries, I can use a custom type that implements the encoding.TextUnmarshaler
and encoding.TextMarshaler
interfaces as map keys. When using the inline
flag, this is no longer allowed.
I think I understand why the original proposal stated:
The inlined field must be a Go struct that does not implement
Marshaler
orUnmarshaler
But I'm having a hard time understanding why the string-ish behavior for map keys couldn't be applied to inline
tagged maps as well.
Thank you!
Metadata
Metadata
Assignees
Labels
No labels