Dep
Create a project with Dep integration
With Dep integration, you can manage dependencies in your project.
Install the dep distribution.
Select
.In the New Project page, select Dep.
In the Location field, specify the path where you want to store your project.
In the GOROOT field, specify the location of your Go installation. Usually, the location is defined automatically.
To change or install a new version of Go SDK, click the Add SDK button and select Local to choose the Go SDK version on your hard drive, or select Download to download Go SDK from the official repository. For more information about installing Go SDK, see Installing Go SDK.
From the Dep Executable list, select a path to the dep executable. To select a path to the dep executable manually, click the Browse button () and navigate to the folder with the dep executable.
Click Next, specify a project name and click Finish.
Import dependencies
Click the dependency declaration.
Press Alt+Enter and select dep ensure.
Specify the Dep executable for an existing Dep project
Press Ctrl+Alt+S to open IDE settings and select Languages & Frameworks | Go | Dep.
Ensure that the Enable dep integration checkbox is selected.
From the Dep executable list, select the existing Dep executable. Alternatively, click the browse button and specify a path to the Dep executable on your hard drive.
Installing Go SDK
Select a local copy of the Go SDK
Ensure that the provided path to the folder with Go SDK includes bin and src folders.
In the New Project dialog, select Dep.
Click the Add SDK button and select Local.
In the file browser, navigate to the SDK version that is on your hard drive.
Click Open.
Download the Go SDK
In the New Project dialog, select Dep.
Click the Add SDK button select Download.
From the Version list, select the SDK version.
In the Location field, specify the path for the SDK. To use a file browser, click the Browse icon .
Click OK.