   (add-hook 'before-save-hook 'gofmt-before-save nil 'local)
   (add-hook 'go-mode-hook
             (lambda ()
-              (use-package flycheck-golangci-lint)
               (with-eval-after-load 'dap-mode
                 (require 'dap-go)))))
+
+(use-package flycheck-golangci-lint
+  :after (go-mode)
+  :config (flycheck-golangci-lint-setup))
 
 ;; Rust
 (use-package rust-mode

  :mode "\\.env\\..*\\'")

(use-package flycheck-yamllint
  :after yaml-mode
  :config (flycheck-yamllint-setup))

;; Emacs Lisp

  (global-flycheck-mode t))

(use-package flycheck-pos-tip
  :after (flycheck)
  :hook (flycheck-mode . flycheck-pos-tip-mode))

;; REST API
