pelletier / go-toml

Go library for the TOML file format
https://github.com/pelletier/go-toml
Other
1.7k stars 209 forks source link

Encoder: respect stdlib rules for embedded structs #747

Closed pelletier closed 2 years ago

pelletier commented 2 years ago

The implementation was always promoting embedded structs to dedicated tables. However the correct behavior is to only do this if the struct field is tagged.