GoLand
 
Get GoLand

Auto import

Last modified: 11 October 2024

If you use a type, an interface, a method, or a function that you haven't imported yet, the IDE shows you a tooltip prompting you to add a missing import statement so that you don't have to add it manually. Press AltEnter to accept the suggestion.

If there's more than one possible source of import, pressing AltEnter will open the list of suggestions.

the auto-import tooltip