This sample demonstrates how to use Google Cloud Endpoints using Go.
For a complete walkthrough showing how to run this sample in different environments, see the Google Cloud Endpoints Quickstarts.
Run the backend using go run:
go run app.goFirst, edit the app.yaml configuration file, setting endpoints_api_service.name to your service domain name.
Then, deploy the app with:
gcloud app deployFirst, create a project API key.
Then, run:
go run client/main.go -api-key=AIza.... -host=https://my-app.appspot.com -echo messageFirst, download a Service Account JSON key file.
Then, run:
go run client/main.go -host=https://my-app.appspot.com -service-account=path_to_service_account.json