The documented table:"-" tag is intended to skip a field, but the current header parser treats - as a literal column label. Consequently, the field and its value are still rendered in text output.
Acceptance criteria
- Add a regression test containing a struct field tagged
table:"-" that proves neither its header nor value appears in text output.
- Update table-field processing and text rendering to omit the tagged field entirely.
- Preserve existing custom-label and
omitempty behavior for non-excluded fields.
- Clarify and test the expected JSON/YAML behavior if the tag is intended to apply outside text rendering.
- Run the relevant test suite.
The documented
table:"-"tag is intended to skip a field, but the current header parser treats-as a literal column label. Consequently, the field and its value are still rendered in text output.Acceptance criteria
table:"-"that proves neither its header nor value appears in text output.omitemptybehavior for non-excluded fields.