v0.2.1 remove testify dep
Test / test (push) Canceled after 0s

This commit is contained in:
lixen committed 2026-09-29 01:11:44 -04:00
1 parent e08467bf38
commit 2a47be454d
17 files changed
+849 -855

No files matched your search

+3 -1
View File
@@ -101,7 +101,9 @@ func decodeInto(data any, dst reflect.Value, depth int) error {
dst.Set(next)
return nil
}
if atomicType(dst.Type()) && src.Type() == dst.Type() {
// Native struct defaults can occur inside slices, arrays and map values.
// They already have the destination type, but still need a checked deep copy.
if (atomicType(dst.Type()) || dst.Kind() == reflect.Struct) && src.Type() == dst.Type() {
v, err := copyReflect(src, depth+1)
if err != nil {
return err