Skip to content

Instantly share code, notes, and snippets.

@mrserverless
Created March 4, 2018 09:55
Show Gist options
  • Save mrserverless/76f2322721479f112527945da53c0860 to your computer and use it in GitHub Desktop.
Save mrserverless/76f2322721479f112527945da53c0860 to your computer and use it in GitHub Desktop.
package main
import (
"context"
"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) {
return &events.APIGatewayProxyResponse{Body: "hello", StatusCode: 200}, nil
}
func main() {
lambda.Start(Handler)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment