Skip to content

Commit be98117

Browse files
authored
Update README_Cognito_UserPools_PreSignup.md
go fmt
1 parent faf19d0 commit be98117

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

events/README_Cognito_UserPools_PreSignup.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,20 +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

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

2424
func main() {
25-
lambda.Start(handler)
25+
lambda.Start(handler)
2626
}
2727
```

0 commit comments

Comments
 (0)