mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
16 lines
318 B
Go
16 lines
318 B
Go
package main
|
|
|
|
import (
|
|
"github.com/aws/aws-lambda-go/lambda"
|
|
)
|
|
|
|
// Handler is our lambda handler invoked by the `lambda.Start` function call
|
|
func Handler() (string, error) {
|
|
return "Go Serverless!", nil
|
|
}
|
|
|
|
func main() {
|
|
// Make the handler available for Remote Procedure Call by AWS Lambda
|
|
lambda.Start(Handler)
|
|
}
|