From faf19d0147fc6444ebd6dcc68d709780caaf881a Mon Sep 17 00:00:00 2001 From: Aaron Mulgrew Date: Mon, 30 Dec 2019 11:14:36 +0000 Subject: [PATCH 1/2] Update README_Cognito_UserPools_PreSignup.md Make the example linter approved. --- events/README_Cognito_UserPools_PreSignup.md | 1 + 1 file changed, 1 insertion(+) diff --git a/events/README_Cognito_UserPools_PreSignup.md b/events/README_Cognito_UserPools_PreSignup.md index 9e782fcc..d0bffa27 100644 --- a/events/README_Cognito_UserPools_PreSignup.md +++ b/events/README_Cognito_UserPools_PreSignup.md @@ -14,6 +14,7 @@ import ( "github.com/aws/aws-lambda-go/events" ) +// handler is the lambda handler invoked by the `lambda.Start` function call func handler(event events.CognitoEventUserPoolsPreSignup) (events.CognitoEventUserPoolsPreSignup, error) { fmt.Printf("PreSignup of user: %s\n", event.UserName) event.Response.AutoConfirmUser = true From be98117145db720dd014843e1f2f6ede17195e6e Mon Sep 17 00:00:00 2001 From: Bryan Moffatt Date: Thu, 2 Jan 2020 19:28:46 +0000 Subject: [PATCH 2/2] Update README_Cognito_UserPools_PreSignup.md go fmt --- events/README_Cognito_UserPools_PreSignup.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/events/README_Cognito_UserPools_PreSignup.md b/events/README_Cognito_UserPools_PreSignup.md index d0bffa27..a1c8492c 100644 --- a/events/README_Cognito_UserPools_PreSignup.md +++ b/events/README_Cognito_UserPools_PreSignup.md @@ -8,20 +8,20 @@ Please see instructions for setting up the Cognito triggers at https://docs.aws. package main import ( - "fmt" + "fmt" - "github.com/aws/aws-lambda-go/lambda" - "github.com/aws/aws-lambda-go/events" + "github.com/aws/aws-lambda-go/events" + "github.com/aws/aws-lambda-go/lambda" ) // handler is the lambda handler invoked by the `lambda.Start` function call func handler(event events.CognitoEventUserPoolsPreSignup) (events.CognitoEventUserPoolsPreSignup, error) { - fmt.Printf("PreSignup of user: %s\n", event.UserName) - event.Response.AutoConfirmUser = true - return event, nil + fmt.Printf("PreSignup of user: %s\n", event.UserName) + event.Response.AutoConfirmUser = true + return event, nil } func main() { - lambda.Start(handler) + lambda.Start(handler) } ```