feat: add GoGenerate command
feat(health): add gogenerate docs(gogenerate): add doc
This commit is contained in:
parent
572c346098
commit
507ccb6347
5 changed files with 40 additions and 1 deletions
12
README.md
12
README.md
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue