Customizing inspection warnings
You can customize rules according to which GoLand inspects your code.
Open settings &shortcut:ShowSettings; and navigate to Editor | Inspections. Select the rules that you want to apply during code inspection. Alternatively, clear the checkbox if you want to ignore the rule.