mirror of
https://github.com/serverless/serverless.git
synced 2026-02-01 16:07:28 +00:00
20 lines
298 B
Go
20 lines
298 B
Go
package main
|
|
|
|
import (
|
|
"github.com/aws/aws-lambda-go/lambda"
|
|
)
|
|
|
|
type Response struct {
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
func Handler() (Response, error) {
|
|
return Response{
|
|
Message: "Go Serverless v1.0! Your function executed successfully!",
|
|
}, nil
|
|
}
|
|
|
|
func main() {
|
|
lambda.Start(Handler)
|
|
}
|