This project is a getting starter guide for working with HTTP Cloud Functions.
- 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/functions/httpfn your.domain/httpfngcloud functions deploy hello-http \
--gen2 \
--runtime=go120 \
--region=us-central1 \
--source=. \
--entry-point=HelloHTTP \
--trigger-http \
--allow-unauthenticatedNote, in projection environments consider removing the
--allow-unauthenticated flag.