/vim-go-adapt

vim plugin for https://github.com/romanyx/adapt

Primary LanguageVim scriptMIT LicenseMIT

Use adapt in Your Vim

gif

adapt is a very handy tool to generate adapters for single method interfaces. This plugin is created to use adapt in your Vim.

Intall

vim-plug:

Plug 'romanyx/vim-go-adapt'

Usage

Simply do:

:GoAdapt {package} {interface}

Or to adapt interface from package you're working on:

:GoAdapt {interface}

Note that :Adapt is also available. It is equivalent to :GoAdapt.

Requirements

  • go command
  • adapt command