Install and import

While typing a symbol, let GoLand install it and generate the import.

Type the symbol, let your IDE install the package and write the import.

GoLand can generate your import for you, even when you haven't installed the package.

How to use:

Press to invoke the list of quick-fixes on the red import line and select Sync packages of <project> to import the package into your project.


Related Resources

Create getters and setters for struct fields
Create getters and setters for struct fields
Generate the support code to access fields indirectly, via getters and setters
Improve Code Readability and Navigation
Improve Code Readability and Navigation
Discover how to manage code visibility with code folding in Go
Create a function in another package
Create a function in another package
Type a non-existing function name and generate its implementation in a package of your choice