Setting Up Your Development Environment

Prepare your environment for Go app development and deployment on Google Cloud Platform by installing the tools below.

Install Go

To install Go, see Go Getting Started.

To confirm the correct version is installed, run the command:

go version

Install an editor

To maximize your Go development efficacy, these popular editor plugins and IDEs provide the following features:

  • Fully integrated debugging capabilities
  • Syntax highlighting
  • Code completion

Install the Google Cloud SDK

The Google Cloud SDK is a set of tools for Google Cloud Platform. It contains the gcloud, gsutil, and bq tools used to access Compute Engine, Cloud Storage, BigQuery, and other services from the command line. You can run these tools interactively or in your automated scripts.

For example, to deploy a Go web application with a main package to App Engine, run the following command:

gcloud app deploy

Install the Google Cloud Client Library for Go

The Google Cloud Client Library for Go is the idiomatic way for Go developers to integrate with Google Cloud Platform services, like Cloud Datastore and Cloud Storage.

For example, to install the package for an individual API, like Cloud Storage, use the following command:

go get -u


To use the Google Cloud Client Library for Go, you need to complete the steps to authenticate on Getting Started with Authentication.

Install other useful tools

For a comprehensive list of Go tools and libraries, see Awesome Go list.

Next Steps

Var denne siden nyttig? Si fra hva du synes:

Send tilbakemelding om ...