Dep
Create a project with Dep integration
With Dep integration, you can manage dependencies in your project.
Install the dep distribution.
Install Go SDK. In GoLand, you can navigate to your local SDK copy or download 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.
Navigate to a local copy of Go SDK
In the New Project dialog, select Dep.
Click the Add SDK icon () near the GOROOT field.
Select Local.
In the file browser, navigate to the SDK version that is on your hard drive.
Click Open.
Download Go SDK
In the New Project dialog, select Dep.
Click the Add SDK icon () near the GOROOT field.
Select Download.
From the Version list, select the SDK version.
In the Target directory field, specify the path for SDK. To use a file browser, click the Browse icon ().