You can view go code in a tree style viewer with direx.el
.
You can install direx
with package.el from MELPA.
And you can install gotags
by go get
as below.
% go get -u github.com/jstemmer/gotags
go-direx
is available on MELPA and MELPA stable
You can install go-direx
with the following command.
M-x package-install [RET] go-direx [RET]
(require 'go-direx) ;; Don't need to require, if you install by package.el
(define-key go-mode-map (kbd "C-c C-j") 'go-direx-pop-to-buffer)
Working with popwin
(require 'popwin)
(setq display-buffer-function 'popwin:display-buffer)
(push '("^\*go-direx:" :regexp t :position left :width 0.4 :dedicated t :stick t)
popwin:special-display-config)
(push '("^\*go-direx:" :regexp t :position right :width 0.4 :dedicated t :stick t)
popwin:special-display-config)