improve Dump feature for package gutil

This commit is contained in:
John Guo
2022-03-10 22:29:47 +08:00
parent afa1f78a02
commit acd1989fa1
4 changed files with 43 additions and 3 deletions

View File

@ -83,6 +83,8 @@ func ReflectValueToInterface(v reflect.Value) (value interface{}, ok bool) {
return v.String(), true
case reflect.Ptr:
return ReflectValueToInterface(v.Elem())
case reflect.Interface:
return ReflectValueToInterface(v.Elem())
default:
return nil, false
}