Skip to content

Instantly share code, notes, and snippets.

@arienmalec
Created March 3, 2018 21:39
Show Gist options
  • Select an option

  • Save arienmalec/dcae090de0dbe79a9e7edf3817a5fe00 to your computer and use it in GitHub Desktop.

Select an option

Save arienmalec/dcae090de0dbe79a9e7edf3817a5fe00 to your computer and use it in GitHub Desktop.
Simple Go Lambda
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