adapter.go
func ListenAndServe(handler http.Handler, opts *Options) {
	if handler == nil {
		handler = http.DefaultServeMux
	}
	if opts == nil {
		opts = defaultOptions
	}
	opts.setBinaryContentTypeMap()
	lambda.Start(func(ctx context.Context, event events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) {
		return handleEvent(ctx, event, handler, opts)
	})
}
func ListenAndServe(handler http.Handler, opts *Options) {
	if handler == nil {
		handler = http.DefaultServeMux
	}
	if opts == nil {
		opts = defaultOptions
	}
	opts.setBinaryContentTypeMap()
	lambda.Start(func(ctx context.Context, event events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) {
		return handleEvent(ctx, event, handler, opts)
	})
}
func ListenAndServe ( handler http . Handler , opts * Options ) { if handler == nil { handler = http . DefaultServeMux } if opts == nil { opts = defaultOptions } opts . setBinaryContentTypeMap ( ) lambda . Start ( func ( ctx context . Context , event events . APIGatewayProxyRequest ) ( events . APIGatewayProxyResponse , error ) { return handleEvent ( ctx , event , handler , opts ) } ) }
// ListenAndServe starts the AWS Lambda runtime (aws-lambda-go lambda.Start) with a given handler.
ListenAndServe starts the AWS Lambda runtime ( aws - lambda - go lambda . Start ) with a given handler .