Auto import | GoLand
Basic procedures to create and optimize imports in GoLand. Learn more how to import the missing import or XML namespace.
https://jetbrains.com/apple-touch-icon.png
GoLand Help
Hover over the inspection widget in the top-right corner of the editor, click , and disable the Show Auto-Import Tooltip option.

The Show Auto-Import Tooltip option toggles the auto-import feature. The setting does not influence the auto import functionality when you select constraints from the code completion list.

In the Exclude from auto-import and completion section, click Alt+Insert, and specify a class or a package that you want to exclude.

You can also select whether you want to exclude items from the current project or from all projects (globally).

(If you've selected a directory) Choose whether you want to optimize imports in all files in the directory, or only in locally modified files (if your project is under version control), and click Run.