This is a great blog post for setting up your development environment in Emacs for Golang:
Some additional settings that I added was:
(setq-default indent-tabs-mode t) (setq-default tab-width 2)
This allows using tabs with 2 spaces instead of spaces for Go-mode. I need this because I have
indent-tabs-mode set to
nil by default as I prefer having spaces instead of tabs for most other programming languages that I use.