              (kill-buffer (current-buffer))
              (message (concat "godoc: " output)))))))
 
+;;;###autoload
 (defun godoc (query)
   "Show go documentation for a query, much like M-x man."
   (interactive (list (godoc--read-query)))

      (skip-chars-forward "^}")
      (forward-char))))

(define-derived-mode go-mode fundamental-mode "Go"
  "Major mode for editing Go source text.


    (add-to-list 'compilation-error-regexp-alist-alist
                 '(go-test . ("^\t+\\([^()\t\n]+\\):\\([0-9]+\\):? .*$" 1 2)) t)))

;;;###autoload
(add-to-list 'auto-mode-alist (cons "\\.go\\'" 'go-mode))

(defun gofmt ()
