impl for Emacs
% go get -u github.com/josharian/impl
% go get -u golang.org/x/tools/cmd/godoc
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]
Insert snippet by impl receiver interface
.
Location of impl
command.
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"))))
If this value is non-nil, go-impl enters into first function after inserting stubs.