🚧 Pass Config to generator

This commit is contained in:
Dan Jones 2025-03-13 15:36:30 -05:00
commit 921020d9fd
6 changed files with 31 additions and 31 deletions

View file

@ -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)