package main
import (
"context"
"fmt"
"github.com/aws/aws-lambda-go/events"
"github.com/aws/aws-lambda-go/lambda"
)
func handler(ctx context.Context, request events.APIGatewayProxyRequest) (*events.APIGatewayProxyResponse, error) {
fmt.Println("This message will show up in the CLI console.")
return &events.APIGatewayProxyResponse{
StatusCode: 200,
Headers: map[string]string{"Content-Type": "text/plain"},
Body: "Hello, world!",
IsBase64Encoded: false,
}, nil
}
func main() {
lambda.Start(handler)
}