fix name prop in doc

the prop Generetor doesn't exists, is Generator
pull/862/head
Juan Camilo Varela López 2020-09-30 13:42:02 -05:00 committed by GitHub
parent 5d04abf55e
commit dfc141660d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -30,9 +30,9 @@ app.Use(requestid.New())
// Or extend your config for customization
app.Use(requestid.New(requestid.Config{
Header: "X-Custom-Header",
Generetor: func() string {
Generator: func() string {
return "static-id"
}
},
}))
```
@ -69,4 +69,4 @@ var ConfigDefault = Config{
},
}
```
```