You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to marshal/unmarshal the type map[string]any. Marshaling an instance like {"key": nil} results in an entirely empty doc, but I expected the presence of "key" to be reflected in the doc. In particular, the key is lost in a round-trip to toml and back.
Describe the bug
I'm trying to marshal/unmarshal the type
map[string]any
. Marshaling an instance like{"key": nil}
results in an entirely empty doc, but I expected the presence of"key"
to be reflected in the doc. In particular, the key is lost in a round-trip to toml and back.To Reproduce
This fails with
Expected behavior
I expected the
Marshal
function to produce an empty table atfoo
:[foo]
Versions
v2.2.3
go version go1.23.3 linux/amd64
The text was updated successfully, but these errors were encountered: