You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If [option] is passed it'll either add a new tag with an option or will
modify existing tags. An example of adding omitempty to all json
fields would be:
:GoAddTags json,omitempty
But that doesn't work; :GoAddTags json works fine, but :GoAddTags json,omitempty doesn't seem to do anything.
Not a recent breakage – I noticed this over a month ago (...just forgot to create issue).
The text was updated successfully, but these errors were encountered:
This is by purpose like this (another discussion from last year: #985 (comment)) . To add an option, the tag needs to exist. If not it won't do anything. So to add the option you have the call these two:
:GoAddTags json
:GoAddTags json,omitempty
There is a reason I did this, but I still don't remember it unfortunately. I'm ok changing it back the behavior and seeing how it feels. The reason I've added it might come up in this case.
The tool works, the implementation in vim-go, as I know, won't work due the way I've implemented it initially. As I said, I don't remember the details.
bhcleek
added a commit
to bhcleek/vim-go
that referenced
this issue
Apr 13, 2019
:GoAddTags
is documented as:But that doesn't work;
:GoAddTags json
works fine, but:GoAddTags json,omitempty
doesn't seem to do anything.Not a recent breakage – I noticed this over a month ago (...just forgot to create issue).
The text was updated successfully, but these errors were encountered: