To develop and deploy Go apps on App Engine, you need to download and install
Cloud SDK, Go, and the
Installing Go and Cloud SDK
Download, install, and then initialize Cloud SDK:
Cloud SDK includes the
gcloudcommand-line tool that provides the interface for GCP and is used to perform common platform tasks to manage your development workflow and your GCP resources.
Download and install Go 1.11 if you haven't already done so.
The Go runtime in the App Engine standard environment uses the latest release of Go 1.11. To avoid errors, ensure you have the same version installed on your machine. For more information about the Go runtime, see the Go Runtime Environment documentation.
gcloudApp Engine Go component:
gcloud components install app-engine-go