Skip to content

emacsorphanage/go-impl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-impl.el travis badge melpa badge melpa stable badge

impl for Emacs

ScreenCast

Screencast of go-impl.el

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.