GoLand 2018.2 Help

Go modules (vgo) integration

Create a project with integration of go modules

GoLand provides integration with go modules (formerly, vgo) out of the box.

  1. Install go modules (run go get -u golang.org/x/vgo in a command prompt).

  2. Click File | New | Project.

  3. In the New Project window, select Go Module (vgo).

  4. Ensure that the project uses correct file paths and click OK.

goland create vgo project

Fetch dependencies with go modules

You can fetch a dependency with go modules if a project misses it.

  1. Click the dependency declaration.

  2. Press Alt+Enter and select Sync packages of <project_name>.

goland fetch vgo source
Last modified: 12 October 2018