 (defcustom godef-command "godef"
   "The 'godef' command."
   :type 'string
+  :group 'go)
+
+(defcustom go-native-paths t
+  "Convert paths passed to go commands to the format they expects. Under Emacs Cygwin build this converts Unix paths to their Windows form. Set this to nil when using custom wrappers that converts paths on their own."
+  :type 'boolean
   :group 'go)
 
 (defcustom go-other-file-alist

    ;; breaks if there's a comment between the struct/interface keyword and
    ;; bracket, like this:
    ;;
    ;;     struct /* why? */ { 
    (while (progn
      (skip-chars-forward "^{")
      (forward-char)

             (t
              (error "invalid rcs patch or internal error in go--apply-rcs-patch")))))))))

(defun go--convert-path (file)
  (if (and go-native-paths (fboundp 'cygwin-convert-file-name-to-windows))
      (cygwin-convert-file-name-to-windows file)
    file))

(defun gofmt ()
  "Format the current buffer according to the gofmt tool."
  (interactive)
