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

Encode: fix embedded struct with explicit field name #773

Merged
merged 1 commit into from May 9, 2022
Merged

Conversation

pelletier
Copy link
Owner

Embedded structs with explicit field names (using toml tag) should be unmarshalled from a table instead of inline.

Fixes #772

@pelletier pelletier merged commit c5ca2c6 into v2 May 9, 2022
@pelletier pelletier deleted the issue-772 branch May 9, 2022 16:45
@pelletier pelletier added the bug Issues describing a bug in go-toml. label May 9, 2022
@pelletier pelletier changed the title Fix embedded struct with explicit field name Encode: fix embedded struct with explicit field name May 10, 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.

v2 does not seem to support unmarshaling TOML file into struct with embedded struct fields
1 participant