Implement omision of zeroed-fields with + flag#69
Conversation
456249b to
cfd0d4d
Compare
|
@kr friendly ping :) |
|
@kr any chance of taking a look at this anytime soon? |
|
I like the idea of omitting zero fields, since that's pretty common in Go source code to begin with. But maybe it should not be an option. I'm not sure retaining the ability to print zero fields carries its weight. What do you think? |
|
Or, if it should be an option, maybe the notation should be |
|
No strong opinions here. I can implement whichever option you prefer. just let me know :) |
|
I have given a Go to @kr what do you say? It's already been a month since I submitted the PR and I would like it to move forward. Thanks! |
|
@kr friendly ping |
1 similar comment
|
@kr friendly ping |
|
+1 for this feature. Regarding format, I'd omit zero values by default (with |
|
@kr friendly ping |
Fixes #59
This PR binds the
'+'formatting flag to omitting empty (zero-valued) struct fields.