Use guard in Your Vim
guard is a very handy tool to generate guard for a constructor. This plugin is created to use guard in your Vim.
vim-plug:
Plug 'romanyx/vim-go-guard'
Simply do:
:GoGuard func {function}
:GoGuard call {function}
- go-guard command