diff --git a/lazy.go b/lazy.go index 1976601..ec2a0cd 100644 --- a/lazy.go +++ b/lazy.go @@ -129,7 +129,8 @@ func RandomStruct(c Config) (*StructMock, error) { maxFieldCount := retType.NumField() //create slice of structs ft := reflect.SliceOf(retType) - filled := reflect.MakeSlice(ft, 0, c.RowCount).Elem() + filled := reflect.MakeSlice(ft, 0, c.RowCount) + // filled := reflect.MakeSlice(ft, 0, c.RowCount).Elem() args := make([]driver.Value, 0, maxFieldCount) for x := 0; x < c.RowCount; x++ {