🚧 Pass Config to generator
This commit is contained in:
parent
67f472a2c6
commit
921020d9fd
6 changed files with 31 additions and 31 deletions
|
|
@ -3,7 +3,7 @@ package nomino
|
|||
import "fmt"
|
||||
|
||||
func ExampleWithGenerator_custom_generator() {
|
||||
gen := func() (string, error) {
|
||||
gen := func(*Config) (string, error) {
|
||||
return "hello", nil
|
||||
}
|
||||
option := WithGenerator(gen)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue