working locally
This commit is contained in:
2
lazy.go
2
lazy.go
@@ -172,7 +172,7 @@ func RandomStruct(c StructConfig) (*StructMock, error) {
|
|||||||
|
|
||||||
//convert reflect.Value to []any
|
//convert reflect.Value to []any
|
||||||
retStructs := make([]any, 0)
|
retStructs := make([]any, 0)
|
||||||
for x := 0; x < c.RowCount; x++ {
|
for x := 0; x < filled.Len(); x++ {
|
||||||
retStructs = append(retStructs, filled.Index(x).Interface())
|
retStructs = append(retStructs, filled.Index(x).Interface())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user