feat: 增强错误处理与示例

This commit is contained in:
2025-12-09 20:06:56 +08:00
parent 72d670be0b
commit 7d17293df3
4 changed files with 458 additions and 69 deletions

View File

@@ -360,7 +360,7 @@ func normalizeInputValue(v any) (reflect.Value, bool, error) {
// 如果所有元素都是 nil 或无效,退回到通用处理
if elemType == nil {
rv = reflect.ValueOf(v)
rv = reflect.ValueOf(nil)
} else {
isPtr = true
count := len(vv)