This commit is contained in:
2025-09-30 17:13:52 -04:00
parent 2415af38b2
commit 791ffad0e3

View File

@@ -173,7 +173,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 < filled.Len(); x++ { for x := 0; x < filled.Len(); x++ {
retStructs = append(retStructs, filled.Index(x)) retStructs = append(retStructs, filled.Index(x).Elem())
} }
return &StructMock{ return &StructMock{