dont elem slice
This commit is contained in:
3
lazy.go
3
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++ {
|
||||
|
Reference in New Issue
Block a user