Created
March 3, 2018 21:39
-
-
Save arienmalec/dcae090de0dbe79a9e7edf3817a5fe00 to your computer and use it in GitHub Desktop.
Simple Go Lambda
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "github.com/aws/aws-lambda-go/lambda" | |
| ) | |
| // Response contains the message for the world | |
| type Response struct { | |
| Message string | |
| } | |
| // Handler is the lambda hander | |
| func Handler() (Response, error) { | |
| return Response{Message: "Hello, world"}, nil | |
| } | |
| func main() { | |
| lambda.Start(Handler) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment