                   (current-indentation)
                 (+ (current-indentation) tab-width))
             (go--backward-irrelevant)
-            (setq line-begin (line-beginning-position))
             (if (= (go-paren-level) 0)
                 0
               (while (and (not (bobp))


(defun go-indentation-at-point (point)
  (save-excursion
    (let (start-nesting line-begin (outindent 0))
      (goto-char point)
      (back-to-indentation)
      (if (go-in-string-p)

                (if (= 0 (skip-chars-backward "^[]{}()"))
                    (backward-char))
                (if (go-in-string-p)
                    (go--backward-irrelevant)))
              (if (< (go-paren-level) start-nesting)
                  (if (go-previous-line-has-opening-parenthesis-p)
                      (current-indentation)
