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
The returned value of MarshalYAML should be used as a valid TOML, otherwise, it can't be used to generate TOML for customized types.
The expected output of the above program:
toml:
X = 111
json:
{"X":111}
Versions
go-toml: 1.8.0
go: 1.13.9
operating system: os neutral
Additional context
Add any other context about the problem here that you think may help to diagnose.
The text was updated successfully, but these errors were encountered:
cofyc
changed the title
the returned value of MarshalYAML is not used as TOML in marshalling
the returned value of MarshalTOML is not used as TOML in marshalling
Jun 1, 2020
Describe the bug
the returned value of
MarshalTOML
is used as a TOML value, not a raw TOML formatted valueTo Reproduce
This example shows the difference between JSON/TOML marshaling:
The current output is:
See https://play.golang.org/p/8RbpHT0v86L
Expected behavior
The returned value of MarshalYAML should be used as a valid TOML, otherwise, it can't be used to generate TOML for customized types.
The expected output of the above program:
Versions
Additional context
Add any other context about the problem here that you think may help to diagnose.
The text was updated successfully, but these errors were encountered: