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: add comment struct tag #711

Merged
merged 1 commit into from
Dec 26, 2021
Merged

Encode: add comment struct tag #711

merged 1 commit into from
Dec 26, 2021

Conversation

pelletier
Copy link
Owner

Similar to v1, add a comment struct that that makes the encoder emit a comment
before the annotated element, if permitted. Unlike v1, comments are compact by
default (and cannot be changed).

Fixes #595.

Similar to v1, add a `comment` struct that that makes the encoder emit a comment
before the annotated element, if permitted. Unlike v1, comments are compact by
default (and cannot be changed).

Fixes #595.
@pelletier pelletier added the feature Issue asking for a new feature in go-toml. label Dec 26, 2021
@pelletier pelletier merged commit 5fd6e9c into v2 Dec 26, 2021
@pelletier pelletier deleted the comments branch December 26, 2021 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Issue asking for a new feature in go-toml.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant