   "Return t if point is inside an anonymous function, nil otherwise."
   (save-excursion
     (go-goto-function)
-    (looking-at "func(")))
+    (looking-at "\\<func(")))
 
 (define-prefix-command 'go-goto-map)
 (define-key go-mode-map (kbd "C-c C-g") 'go-goto-map)


      ;; If nothing is found, assume that we are at the top of the file and
      ;; should search forward instead.
      (when (not (looking-at "func"))
        (re-search-forward "\\<func\\>" nil t)
        (forward-word -1))



If one prefix argument is given, anonymous functions are skipped."
  (interactive "P")
  (when (not (looking-at "\\<func\\>"))
    (go-goto-function arg))
  ;; If we are looking at func( we are on an anonymous function and
  ;; nothing else should be done.
  (when (not (looking-at "\\<func("))
    (let ((words 1)
          (chars 1))
      (when (looking-at "\\<func (")
        (setq words 3
              chars 2))
      (forward-word words)
