Skip to content

Commit b76bc6a

Browse files
Aaron Mulgrewbmoffatt
Aaron Mulgrew
andcommitted
Update README_Cognito_UserPools_PreSignup.md (#258)
* 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]>
1 parent 6625202 commit b76bc6a

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

events/README_Cognito_UserPools_PreSignup.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,20 @@ Please see instructions for setting up the Cognito triggers at https://docs.aws.
88
package main
99

1010
import (
11-
"fmt"
11+
"fmt"
1212

13-
"github.com/aws/aws-lambda-go/lambda"
14-
"github.com/aws/aws-lambda-go/events"
13+
"github.com/aws/aws-lambda-go/events"
14+
"github.com/aws/aws-lambda-go/lambda"
1515
)
1616

17+
// handler is the lambda handler invoked by the `lambda.Start` function call
1718
func handler(event events.CognitoEventUserPoolsPreSignup) (events.CognitoEventUserPoolsPreSignup, error) {
18-
fmt.Printf("PreSignup of user: %s\n", event.UserName)
19-
event.Response.AutoConfirmUser = true
20-
return event, nil
19+
fmt.Printf("PreSignup of user: %s\n", event.UserName)
20+
event.Response.AutoConfirmUser = true
21+
return event, nil
2122
}
2223

2324
func main() {
24-
lambda.Start(handler)
25+
lambda.Start(handler)
2526
}
2627
```

0 commit comments

Comments
 (0)