GoLand 2018.1 Help

Creating a project with dep integration

GoLand lets you create and import a project with the dep integration that helps you manage dependencies in your project.

Before you start creating or importing your project, make sure that the dep distribution is downloaded on your computer.

  1. Select File | New | Project.
  2. On the page that opens, select Dep, specify project information and the location of the downloaded dep distribution.
    go create dep project
    Click Create.
  3. GoLand creates a project, runs the dep init command and displays the appropriate message.

After your project is successfully created or imported, you can develop your project further .

When GoLand comes across an unresolved import statement, it offers you to run the dep ensure command to import the dependency in question.

go dep ensure

GoLand adds the dependency to the vendor directory in the Project tool window.

go dep added dependency
Last modified: 25 July 2018