Go modules (vgo) integration
Create a project with integration of go modules
GoLand provides integration with go modules (formerly, vgo) out of the box.
Install go modules (run
go get -u golang.org/x/vgoin a command prompt).
In the New Project window, select Go Module (vgo).
Ensure that the project uses correct file paths and click OK.
Fetch dependencies with go modules
You can fetch a dependency with go modules if a project misses it.
Click the dependency declaration.
Press Alt+Enter and select Sync packages of <project_name>.