This project is a getting starter guide for working with App Engine task handlers in Go.
- Install gonew if you have not already.
go install golang.org/x/tools/cmd/gonew@latest- Download this template locally:
gonew github.com/GoogleCloudPlatform/go-templates/appengine/taskhandler your.domain/taskhandler# The name of the Cloud Task queue the handler will receive message from
EXPORT AE_QUEUE=ae-queue
# Deploy the app to App Engine
gcloud app deploy
# Create the Cloud Task queue
gcloud tasks queues create $AE_QUEUE
# Connect the Cloud Task queue to the App Engine handler endpoint
gcloud tasks create-app-engine-task hello --queue=$AE_QUEUE --relative-uri=/task_handler --body-content="a friendly hello"