This package allows you write AWS Lambda functions as the back end of your API through the AWS Lambda proxy integration.
For step by step instructions on how to author your AWS Lambda function code in Go, see eawsy/aws-lambda-go-shim.
go get -u -d github.com/eawsy/aws-lambda-go-event/...
package main
import (
"log"
"github.com/eawsy/aws-lambda-go-event/service/lambda/runtime/event/cloudformationevt"
"github.com/eawsy/aws-lambda-go-core/service/lambda/runtime"
)
func Handle(evt *cloudformationevt.Event, ctx *runtime.Context) (interface{}, error) {
log.Println(evt)
return nil, nil
}