GoLand 2019.2 Help

App Engine

Google App Engine is a service and a platform where you can develop and host web applications. You can learn more about Google App Engine at the official Google App Engine site.

With App Engine integration, you can run and debug Google App Engine applications. A new project already includes app.yaml with default configuration settings, and the GO file with the Hello World application. Customize the basic handler in the GO file or write your own.

Create a project with App Engine integration

The App Engine project has a predefined run/debug configuration. To add another configuration, select Go build in the Run/Debug configurations dialog. For more information about run/debug configurations, see Work with run/debug configurations.

  1. Select File | New | Project.

  2. In the New Project page, select App Engine.

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

  4. Select Go 1.11 and later.

  5. Click OK.

Create a project with App Engine integration

Create an App Engine with the Go 1.9 runtime

The App Engine project has a predefined run/debug configuration. To add another configuration, select Go App Engine in the Run/Debug configurations dialog. For more information about run/debug configurations, see Work with run/debug configurations.

  1. Download and unpack Google Cloud SDK for App Engine (Download the Cloud SDK). For the 1.9 runtime version, scroll to Previous App Engine SDK section.

  2. Select File | New | Project.

  3. In the New Project page, select App Engine.

  4. Click the Add SDK icon (the Add SDK icon) near the GOROOT field and select Local.

  5. In the file browser, navigate to the goroot-1.9 folder of Google Cloud SDK for App Engine that is on your hard drive.

  6. Click OK.

Create an App Engine with the Go 1.9 runtime

Run an App Engine application

As you created an App Engine project, you can start debugging. The App Engine project has a predefined run/debug configuration and the default address (http://localhost:8080).

  1. Click the Run icon Shift+F10

  2. In the App Engine tab, click the admin server address.

  3. In the browser, click the instance name (for example, default).

Debug an App Engine application

  1. Set a breakpoint in the application.

  2. Click the Debug icon Shift+F9

  3. In the App Engine tab, click the server address.

  4. In the browser, click the instance name (for example, default).

  5. In the Debugger tab, see a list of frames that you can inspect. You can click the frame to see the current state of variables.

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

  1. In the New Project dialog, select App Engine.

  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 App Engine.

  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: 21 August 2019