Skip to content

README: Document struct field tag "-"#653

Merged
fxamacker merged 1 commit intomasterfrom
fxamacker/update-readme-for-special-field-tag
Apr 13, 2025
Merged

README: Document struct field tag "-"#653
fxamacker merged 1 commit intomasterfrom
fxamacker/update-readme-for-special-field-tag

Conversation

@fxamacker
Copy link
Copy Markdown
Owner

@fxamacker fxamacker commented Apr 13, 2025

Updates: #652

The field tag "-" wasn't documented in README.

This PR updates the README to mention it in a few places and adds example code from #652.

NOTE: The encoding/json docs describe it as a "special case" and "field tag" rather than tag "option", so I did the same in this PR.

Thanks @theory for spotting this omission and opening issue! 👍

The field tag "-" wasn't documented in README.

This change updates the README to mention it in a few places and adds example code from:

#652
@fxamacker fxamacker added the docs label Apr 13, 2025
@fxamacker fxamacker self-assigned this Apr 13, 2025
Copy link
Copy Markdown
Contributor

@theory theory left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 Thank you!

@fxamacker fxamacker merged commit 80633d5 into master Apr 13, 2025
22 checks passed
@fxamacker fxamacker deleted the fxamacker/update-readme-for-special-field-tag branch April 18, 2025 02:09
@fxamacker fxamacker added this to the v2.9.0 milestone Jul 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants