You can customize rules according to which GoLand inspects your code.

Go to Settings | Editor | Inspections and select the rules that you want to apply during code inspection. Alternatively, clear a check box if you want to ignore the rule.

dot alias for package