feat: add GoGenerate command

feat(health): add gogenerate

docs(gogenerate): add doc
This commit is contained in:
Smirnov Olexander 2022-06-21 14:23:37 +03:00
parent 572c346098
commit 507ccb6347
5 changed files with 40 additions and 1 deletions

View file

@ -61,6 +61,7 @@ You can provide more that one package url.
5. Interface implementation
Command syntax:
```vim
:GoImpl [receiver] [interface]
@ -69,6 +70,7 @@ Command syntax:
```
Example of usage:
```vim
" Example
:GoImpl r Read io.Reader
@ -76,6 +78,16 @@ Example of usage:
:GoImpl io.Reader
```
5. Run `go generate` command
```vim
" Run `go generate` in cwd path
:GoGenerate
" Run `go generate` for current file
:GoGenerate %
```
## Thanks
- [go.nvim](https://github.com/ray-x/go.nvim)