You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
3 是否把成员的struct 类型用interface 直接返回更安全呢? 特别遇到自定义类型又没有定json tag 的类型
如果第三点是成立的那么func (f *Field) mapValue(value any) any {
```
val := pointer.ExtractPointer(value)
v := reflect.ValueOf(val)
var ret any
switch v.Kind() {
case reflect.Struct:
ret = v.Interface()
1 在转化的过程会吧deciaml 类型转化成map[] 这是个灾难,
2质疑一定要把所有的成员的类型全部转化成map 么, ?
3 是否把成员的struct 类型用interface 直接返回更安全呢? 特别遇到自定义类型又没有定json tag 的类型
如果第三点是成立的那么func (f *Field) mapValue(value any) any {
```
val := pointer.ExtractPointer(value)
v := reflect.ValueOf(val)
var ret any
The text was updated successfully, but these errors were encountered: