(defconst mfa-go-packages '(go-dlv))

(defun mfa-go/init-go-dlv ()
  (use-package go-dlv
    :defer t))

(defconst mfa-go-packages '(go-dlv projectile))

(defun mfa-go/init-go-dlv ()
  (use-package go-dlv
    :defer t))

(defun mfa-go/post-init-projectile ()
  (push '(projectile-project-test-cmd . "go test") safe-local-variable-values)
  (push '(projectile-project-compilation-cmd . "go build") safe-local-variable-values))

Whitelist go build commands as safe local variable values
Whitelist go build commands as safe local variable values

amfranz/spacemacs.d