 ;;; lang/go/config.el
+
+;; requires gocode (completion), gore (repl) and a valid $GOPATH
+;;   go get -u github.com/nsf/gocode
+;;   go get -u github.com/motemen/gore
 
 (def-package! go-mode
   :mode "\\.go$"

           :n "s" '+go/test-run-package))))


(def-package! company-go :after go-mode)


(def-package! go-eldoc

  (add-hook! go-mode (add-hook 'before-save-hook 'gofmt-before-save))
  :config
  (set! :build 'go-build 'go-mode '+go/build)

  (set! :repl 'go-mode 'gorepl-run)

  (map! :map go-mode-map
