docs(iferr): add

This commit is contained in:
Smirnov Oleksandr 2022-07-06 23:52:04 +03:00
parent 7d734b9516
commit cb844adbc4

View file

@ -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)