GoLand 2019.2 Help

Creating a project with dep integration

Create a project with Dep integration

With Dep integration, you can manage dependencies in your project.

  1. Install the dep distribution.

  2. Install the Go SDK. In GoLand, you can navigate to your local SDK copy or download the Go SDK from the Internet.

  3. Select File | New | Project.

  4. In the New Project page, select Dep.

  5. Specify project information and the location of the downloaded dep distribution. Click Create.

Create a project with Dep integration

Import dependencies

  1. Click the dependency declaration.

  2. Press Alt+Enter and select dep ensure.

Import dependencies

Specify the Dep executable for an existing Dep project

  1. Open settings Ctrl+Alt+S and navigate to Go | Dep.

  2. Ensure that the Enable dep integration checkbox is selected.

  3. From the Dep executable list, select the existing Dep executable. Alternatively, click the browse button the browse button and specify a path to the Dep executable on your hard drive.

Specify the Dep executable for an existing Dep project

Select a local copy of the Go SDK

Ensure that the provided path to the folder with Go SDK includes bin и src folders.

  1. In the New Project dialog, select Dep.

  2. Click the Add SDK icon the Add SDK icon near the GOROOT field and select Local.

  3. In the file browser, navigate to the SDK version that is on your hard drive.

  4. Click Open.

Navigate to a local copy of Go SDK

Download the Go SDK

  1. In the New Project dialog, select Dep.

  2. Click the Add SDK icon (the Add SDK icon) near the GOROOT field and select Download.

  3. From the Version list, select the SDK version.

  4. In the Target directory field, specify the path for the SDK. To use a file browser, click the Browse icon the Browse icon.

  5. Click OK.

Download the Go SDK
Last modified: 29 October 2019