Add comment generator (#10)

* feat(_utils.ts): get package

* feat(_utils.ts): get interface

* feat(_utils.ts): update type annotations

* feat(comments): first naive implementation

* docs: add comment [skip ci]
This commit is contained in:
Smirnov Oleksandr 2022-06-30 12:00:13 +03:00 committed by GitHub
parent 40a2839eab
commit 0fcdceeb89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 97 additions and 2 deletions

View file

@ -128,6 +128,14 @@ Generate tests only for exported functions/methods in current file
:GoGenerate %
```
8. Generate doc comment
First set a cursor on **public** package/function/interface/struct and execure:
```vim
:GoCmt
```
## Thanks
- [go.nvim](https://github.com/ray-x/go.nvim)