The plugin folds Go's if err != nil
and shows other lines like in Goland,
it greatly reduces code length and doesn't affect readability.
This plugin is compatible with vim, when using NeoVim I recommend using Snyssfx/goerr-nvim which is a lot more polished than this simple plugin.
In ~/.vimrc
add:
Plugin 'jzandbergen/vim-goerr
And run PluginInstall
All credits go to Snyssfx/goerr-nvim from which I've copied the vim commands necessary for this to work. The only reason this plugin exists is that this one is compatible with VIM.