(add-hook 'go-mode-hook 'my/common-programming-hook)
(add-hook 'go-mode-hook
  (lambda()
    (local-set-key (kbd "C-x C-o") 'ff-find-other-file)
   )
 )

(add-hook 'go-mode-hook 'my/common-programming-hook)
(add-hook 'go-mode-hook
  (lambda()
    (local-set-key (kbd "C-x C-o") 'ff-find-other-file)
    (add-hook 'before-save-hook 'gofmt-before-save nil 'local)
   )
 )

Call gofmt on buffer save.
Call gofmt on buffer save.

shaleh/dot-files