 
   (setq ac-sources '(ac-source-go ac-source-yasnippet))
 
-  ;(setq flycheck-checkers '(go-build gometalinter))
+  (setq flycheck-checkers '(go-build go-test gometalinter))
   )
-(add-hook 'go-mode-hook 'my-go-mode-hook)
+(add-hook 'go-mode-hook 'go-mode-setup)
 
 (provide 'init-go)

;; Only run the 'fast' linters
(setq flycheck-gometalinter-fast t)

(defun my-go-mode-hook ()
  ;; Use goimports instead of go-fmt
  (setq gofmt-command "goimports")
  ;; Call Gofmt before saving
  (add-hook 'before-save-hook 'gofmt-before-save)


(require-package 'go-mode)
(require-package 'go-autocomplete)
(require-package 'flycheck-gometalinter)
(require-package 'go-eldoc)

; dafuq is up with autoloads?
(load "go-mode.el")

(require 'go-autocomplete)
(setq-default ac-go-expand-arguments-into-snippets t)

; Needs to be installed
(load-file (concat (getenv "HOME") "/src/golang.org/x/tools/refactor/rename/go-rename.el"))

(eval-after-load 'flycheck
  '(add-hook 'flycheck-mode-hook #'flycheck-gometalinter-setup))
