App Engine
Google App Engine is a cloud platform that allows you to develop and host web applications. To learn more, visit the official Google App Engine site.
With App Engine integration, you can run and debug Google App Engine applications. A newly created project includes an app.yaml file with default configuration settings and a GO file containing a basic Hello, World application. You can customize the handler in the provided GO file or create your own.
The App Engine project comes with a predefined run/debug configuration. To add another configuration, select Go build in the Run/Debug Configurations dialog. For more details, refer to Run/debug configurations.
Select File | New | Project.
Alternatively, click New Project in the Welcome to GoLand dialog.
In the New Project dialog, select App Engine from the list of available project types.
In the GOROOT field, specify the location of your Go installation. GoLand usually detects this location automatically.
To change or install a new Go SDK version, click Add SDK (
) and choose one of the following options:
Local: to use an existing SDK from your local system.
Download: to download a Go SDK version from the official repository.
(Optional) Toggle the Index entire GOPATH checkbox:
When cleared, only project files and vendored packages are indexed. This can improve performance but excludes packages from GOPATH.
When selected, both GOPATH packages and project files are indexed.
Click Create.
warning
Starting October 1, 2019, new deployments using the Go 1.9 runtime are no longer supported. Please upgrade your application to use Go 1.11 or Go 1.12 or later. For more information, refer to the official App Engine documentation.
note
Ensure that the provided path to the folder with Go SDK includes bin and src folders.
Press to open settings and then select Go | GOROOT.
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.
Press to open settings and then select Go | GOROOT.
Click the Add SDK button (
) and 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.