How to stop GoLand from auto removal of unused imports?
This feature is used so that you do not receive compilation errors for unused imports from Go. You can deactivate the feature via: Settings (Preferences) > Go > Imports > Optimize imports on the fly However my recommendation is to leave this as is and instead let the IDE manage the imports for you. For … Read more