Skip to content

Commit

Permalink
Update README_Cognito_UserPools_PreSignup.md (#258)
Browse files Browse the repository at this point in the history
* Update README_Cognito_UserPools_PreSignup.md

Make the example linter approved.

* Update README_Cognito_UserPools_PreSignup.md

go fmt

Co-authored-by: Bryan Moffatt <[email protected]>
  • Loading branch information
Aaron Mulgrew and bmoffatt committed Jan 2, 2020
1 parent 6625202 commit b76bc6a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions events/README_Cognito_UserPools_PreSignup.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +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)
}
```

0 comments on commit b76bc6a

Please sign in to comment.