Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoder: respect stdlib rules for embedded structs #747

Merged
merged 2 commits into from
Apr 7, 2022
Merged

Conversation

pelletier
Copy link
Owner

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.

@pelletier pelletier added the bug Issues describing a bug in go-toml. label Apr 7, 2022
@pelletier pelletier merged commit 068279f into v2 Apr 7, 2022
@pelletier pelletier deleted the anon-marshal branch April 7, 2022 23:51
@pelletier pelletier changed the title encode: respect stdlib rules for embedded structs Encoder: respect stdlib rules for embedded structs Apr 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues describing a bug in go-toml.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant