Skip to content

Commit

Permalink
Document Make
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingmutant committed Jan 8, 2023
1 parent 5bec4e8 commit e62b94b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions make.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"reflect"
)

// Make creates a generator of values of type V, using reflection to infer the required structure.
func Make[V any]() *Generator[V] {
var zero V
gen := newMakeGen(reflect.TypeOf(zero))
Expand Down

0 comments on commit e62b94b

Please sign in to comment.