              (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))))

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


    (display-buffer errbuf)
    (compilation-mode)))

(defun gofmt-before-save ()
  "Add this to .emacs to run gofmt on the current buffer when saving:
 (add-hook 'before-save-hook 'gofmt-before-save)"
