refactor: struct tags (#94)
* refactor(struct_tags): finally my hands got to this * feat(struct_tags): trim output * feat(struct_tags): add :GoTagClear * docgen * refactor(struct_tags): error on out-of-bounds * feat(struct_tags): add support for working with multiple tags at the once * test(struct_tags): test both possible inputs * refactor(struct_tags): add type annotation, dont force write * refactor(struct_tags): optimization ig * docs: fix * fixup! refactor(struct_tags): add type annotation, dont force write * task docgen --------- Co-authored-by: Oliver <1571880470@qq.com>
This commit is contained in:
parent
e9f2eef5e7
commit
55bc5787d1
10 changed files with 177 additions and 70 deletions
|
|
@ -129,6 +129,25 @@ Example:
|
|||
Name string `yaml:name`
|
||||
}
|
||||
<
|
||||
------------------------------------------------------------------------------
|
||||
*struct_tags.add()*
|
||||
`struct_tags.add`({...})
|
||||
tags to a struct under the cursor
|
||||
Parameters ~
|
||||
{...} `(string)` Tags to add to the struct fields. If not provided, it will use [config.gotag.default_tag]
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
*struct_tags.remove()*
|
||||
`struct_tags.remove`({...})
|
||||
tags from a struct under the cursor
|
||||
Parameters ~
|
||||
{...} `(string)` Tags to add to the struct fields. If not provided, it will use [config.gotag.default_tag]
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
*struct_tags.clear()*
|
||||
`struct_tags.clear`()
|
||||
all tags from a struct under the cursor
|
||||
|
||||
|
||||
==============================================================================
|
||||
------------------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue