docs(iferr): add
This commit is contained in:
parent
7d734b9516
commit
cb844adbc4
1 changed files with 10 additions and 2 deletions
12
README.md
12
README.md
|
|
@ -130,12 +130,20 @@ Generate tests only for exported functions/methods in current file:
|
||||||
|
|
||||||
8. Generate doc comment
|
8. Generate doc comment
|
||||||
|
|
||||||
First set a cursor on **public** package/function/interface/struct and execure:
|
First set a cursor on **public** package/function/interface/struct and execute:
|
||||||
|
|
||||||
```vim
|
```vim
|
||||||
:GoCmt
|
:GoCmt
|
||||||
```
|
```
|
||||||
|
|
||||||
## Thanks:
|
9. Generate `if err`
|
||||||
|
|
||||||
|
Set cursor on the line with **err** and execute:
|
||||||
|
|
||||||
|
```vim
|
||||||
|
:GoIfErr
|
||||||
|
```
|
||||||
|
|
||||||
|
## Thanks
|
||||||
|
|
||||||
- [go.nvim](https://github.com/ray-x/go.nvim)
|
- [go.nvim](https://github.com/ray-x/go.nvim)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue