First, install aws-lambda-go:
go get github.com/aws/aws-lambda-go/lambdaBuild and package locally:
go mod init lambda-test
go build main.go && zip function.zip mainThen upload function.zip to AWS by command line or web console, whichever you like. The handler name is main in this case.
Create a test and run a test in AWS Lambda web console, then you can see:
