Skip to content

A quick Go Cloud Function example using a functions module and a common module

License

Notifications You must be signed in to change notification settings

theyakka/go-func-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This repo contains an example of how separate "common" code from you functions code via a local module. It is written for Google Cloud Function (Go 1.11).

Please read the blog post here for a breakdown of how the code works.

Deploying

To deploy the code, first vendor the local module via the following command:

go mod vendor

Then deploy the function using the gcloud command line tool with the command:

gcloud functions deploy OutputMessage --runtime go111 --trigger-http

You can then use the url that is printed for the httpsTrigger value to access the deployed cloud function.

License

This code is released under a modified MIT license. See LICENSE for details. Use it however you want.


Yakka means work.

About

A quick Go Cloud Function example using a functions module and a common module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages