From 0c4a1abb9aabb12fea68622e2e0261bb77870792 Mon Sep 17 00:00:00 2001 From: jake Date: Tue, 30 Sep 2025 17:15:45 -0400 Subject: [PATCH] testing any typecast --- lazy.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lazy.go b/lazy.go index f18dcd5..6c38fe0 100644 --- a/lazy.go +++ b/lazy.go @@ -173,7 +173,7 @@ func RandomStruct(c StructConfig) (*StructMock, error) { //convert reflect.Value to []any retStructs := make([]any, 0) for x := 0; x < filled.Len(); x++ { - retStructs = append(retStructs, filled.Index(x).Elem()) + retStructs = append(retStructs, filled.Index(x).Interface()) } return &StructMock{