55 "github.com/bastean/codexgo/v4/pkg/context/shared/domain/services"
66)
77
8- func Random [ T ~ Message ] () * T {
9- return & T {
8+ func Random () * Message {
9+ return & Message {
1010 ID : services .Create .UUID (),
1111 OccurredOn : services .Create .TimeZoneFull (),
1212 Key : Key (services .Create .LoremIpsumWord ()),
@@ -15,8 +15,8 @@ func Random[T ~Message]() *T {
1515 }
1616}
1717
18- func RandomWithKey [ T ~ Message ] (key Key ) * T {
19- return & T {
18+ func RandomWithKey (key Key ) * Message {
19+ return & Message {
2020 ID : services .Create .UUID (),
2121 OccurredOn : services .Create .TimeZoneFull (),
2222 Key : key ,
@@ -25,7 +25,7 @@ func RandomWithKey[T ~Message](key Key) *T {
2525 }
2626}
2727
28- func RandomWithAttributes [ T ~ Message ] (attributes any , shouldRandomize bool ) * T {
28+ func RandomWithAttributes (attributes any , shouldRandomize bool ) * Message {
2929 if shouldRandomize {
3030 err := services .Create .Struct (attributes )
3131
@@ -34,7 +34,7 @@ func RandomWithAttributes[T ~Message](attributes any, shouldRandomize bool) *T {
3434 }
3535 }
3636
37- return & T {
37+ return & Message {
3838 ID : services .Create .UUID (),
3939 OccurredOn : services .Create .TimeZoneFull (),
4040 Key : Key (services .Create .LoremIpsumWord ()),
0 commit comments