-
Notifications
You must be signed in to change notification settings - Fork 247
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
omit fields on write #135
Comments
Just ran into this issue where I was under the impression that fields would be omitted from writing when the tag |
The I believe the issue with getting the That being said, I'm sure there is a way to keep track of every column's name, omitempty status, and if a value was populated for this column then running through the marshaled data and removing columns with empty values (if omitempty is set). Something like:
|
When I annotate fields with
csv:"-"
fields are not omitted on write. Should they be? If not, can we have another tag for omitting on write?csv:",omit"
and/or?csv:",omitempty"
UPDATE I guess
omitempty
is not sensible for streaming use, as we have to decide ahead of time for whole file whether to omit a column. Butomit
(or just "-" if this is what is intended) would be great.The text was updated successfully, but these errors were encountered: