-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Add new g:go_addtags_skip_unexported option #2660
Conversation
8417354
to
d3a2549
Compare
Given that |
I personally never need tags for private fields. So it is just much simpler for me. I don't need to select a range with this option |
The flag name for gomodifytags has changed. Would you be willing to update this PR similarly? |
PR is updated according to new flag name |
Thanks @igrmk Do you mind if I rebase and push a fix for a couple of nitpicks to your branch before I merge? |
Please go ahead! Thanks @bhcleek |
* Document g:go_addtags_skip_unexported default value. * Change language to refer to unexported fields instead of private fields.
Thanks for contributing @igrmk ! |
Tool gomodifytags now has -skip-private option for adding tags only to public fields
This PR mirrors this option in vim config
For example you may have following struct
Currently GoAddTags command would add these tags
With new option it would add