by seniorsassycat · 8y ago · 0 comments
// main.go
package main
import (
"github.com/aws/aws-lambda-go/lambda"
)
func hello() (string, error) {
return "Hello ƛ!", nil
}
func main() {
// Make the handler available for Remote Procedure Call by AWS Lambda
lambda.Start(hello)
}
lambda.Start is the abstraction wrapper.[Edit: this is a joke. I think the person to whom I'm replying has a valid point.]