updated deserialize method to support validation

This commit is contained in:
yusing
2024-11-30 02:58:13 +08:00
parent 4188bbc5bd
commit edc1ad952d
5 changed files with 52 additions and 8 deletions

View File

@@ -36,7 +36,7 @@ func NearestField(input string, s any) string {
fields[i] = key.String()
}
default:
panic("unsupported type: " + t.String())
panic("NearestField unsupported type: " + t.String())
}
}
for _, field := range fields {