You can fix indentation for the line at the caret position by pressing &shortcut:AutoIndentLines;.

GoLand tips of the day, build 2078