Closed livzz closed 6 years ago
Hi @livzz, If you intend to use API Gateway Proxy please refer to https://github.com/eawsy/aws-lambda-go-net which provides full featured http server capability behind API Gateway. Otherwise here is a very simple example for API Gateway Proxy:
package main
import (
"github.com/eawsy/aws-lambda-go-core/service/lambda/runtime"
"github.com/eawsy/aws-lambda-go-event/service/lambda/runtime/event/apigatewayproxyevt"
)
func Handle(evt *apigatewayproxyevt.Event, ctx *runtime.Context) (interface{}, error) {
return map[string]interface{}{
"statusCode": 200,
"body": "Helo, World!",
}, nil
}
No examples