可以自定义 GoLand 检查您代码的规则。

打开设置 &shortcut:ShowSettings; 并导航至 编辑器 | 检查 。选择要在代码检查期间应用的规则。或者,如果您想忽略规则,请清除此复选框。

Disable and enable code inspections