GoLand 2019.3 Help

Creating a Go project

Create a Go project

  1. Select File | New | Project.

  2. In the New Project page, select Go.

  3. In the Location field, specify where you want to store your project.

  4. 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.

  5. (Optional) Toggle the Index entire GOPATH checkbox:

    • Checkbox cleared: project files and vendored packages are indexed. Packages from GOPATH are not indexed. Might improve the overall performance.

    • Checkbox selected: packages from GOPATH and project files are indexed.

  6. Click Create.

    Create a project with Go integration

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.

  1. In the New Project dialog, select Go.

  2. Click the Add SDK button and select Local.

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

  4. Click Open.

Select a local copy of Go SDK

Download the Go SDK

  1. In the New Project dialog, select Go.

  2. Click the Add SDK button select Download.

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

  4. In the Location 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: 23 March 2020