Creating a project with dep integration
Create a project with Dep integration
With Dep integration, you can manage dependencies in your project.
Install the dep distribution.
Install the Go SDK. In GoLand, you can navigate to your local SDK copy or download the Go SDK from the Internet.
Select
.In the New Project page, select Dep.
Specify project information and the location of the downloaded dep distribution. Click Create.
Import dependencies
Click the dependency declaration.
Press Alt+Enter and select dep ensure.
Specify the Dep executable for an existing Dep project
Open settings Ctrl+Alt+S and navigate to
.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.
Select a local copy of the Go SDK
Ensure that the provided path to the folder with Go SDK includes bin и src folders.
In the New Project dialog, select Dep.
Click the Add SDK icon near the GOROOT field 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 icon () near the GOROOT field and select Download.
From the Version list, select the SDK version.
In the Target directory field, specify the path for the SDK. To use a file browser, click the Browse icon .
Click OK.