Skip to content

encoder: add back the commented option#893

Merged
pelletier merged 1 commit intov2from
commented
Aug 28, 2023
Merged

encoder: add back the commented option#893
pelletier merged 1 commit intov2from
commented

Conversation

@pelletier
Copy link
Copy Markdown
Owner

This patch adds back the commented field option from go-toml v1. I initially cut it from scope stating that it should belong in a full-fledge document model, but I've decided to bring it back to support the use case of generating configuration files with commented out sections.

As with the other field tags, it is merged as an option in the toml tag (see updated README.md).

@pelletier pelletier added the feature Issue asking for a new feature in go-toml. label Aug 28, 2023
@pelletier pelletier merged commit 9dd7f1a into v2 Aug 28, 2023
@pelletier pelletier deleted the commented branch August 28, 2023 18: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