Quick-fix: applying a quick-fix

GoLand constantly analyzes your code, highlights detected issues, and offers automatic fixes. To apply a fix for the issue at the caret, press &shortcut:ShowIntentionActions; and select the quick-fix.

Quick-fixes