go-impl
go-impl copied to clipboard
impl for Emacs
go-impl.el

impl for Emacs
ScreenCast
Requirements
% go get -u github.com/josharian/impl
% go get -u golang.org/x/tools/cmd/godoc
Installation
go-impl
is available on MELPA and MELPA stable
You can install go-impl
with the following command.
M-x package-install [RET] go-impl [RET]
Command
M-x go-impl
(go-impl receiver interface)
Insert snippet by impl receiver interface
.
Customization
go-impl-command
Location of impl
command.
go-impl-aliases-alist
Association list of aliases of interface names. If interface name is matched
with alias, then go-impl
replaces alias with real interface name. Example is as below.
(custom-set-variables
'(go-impl-aliases-alist '(("hh" . "http.Handler")
("irw" . "io.ReadWriter"))))
go-impl-enter-function
If this value is non-nil, go-impl enters into first function after inserting stubs.