module
Version:
v0.0.0-...-6c0fb1d
Opens a new window with list of versions in this module.
Published: Apr 3, 2023
License: Apache-2.0
Opens a new window with license information.
README
¶
AWS Lambda for Go
An experiment reducing the go lambda runtime to a single function signature
Getting Started
// main.go
package main
import (
"context"
"github.com/Luke-Davies/aws-lambda-go/lambda"
)
type Request struct {
Message string
}
type Response struct {
Message string
}
func hello(ctx context.Context, event Request) (Response, error) {
return Response{ Message: "Hello λ!" }, nil
}
func main() {
// Make the handler available for Remote Procedure Call by AWS Lambda
lambda.StartHandlerFunc(hello)
}
Directories
¶
Click to show internal directories.
Click to hide internal directories.