UnwrapObject if the actual object is wrapped in some proxy, it unwinds and returns it, otherwise this is idempotent
(ifc any)
| 128 | |
| 129 | // UnwrapObject if the actual object is wrapped in some proxy, it unwinds and returns it, otherwise this is idempotent |
| 130 | func UnwrapObject(ifc any) any { |
| 131 | if dynamic, ok := ifc.(DynamicTabler); ok { |
| 132 | return dynamic.Unwrap() |
| 133 | } |
| 134 | return ifc |
| 135 | } |
| 136 | |
| 137 | // DumpInfo Useful function for debugging purposes - to see what's in the struct at runtime |
| 138 | func DumpInfo(tbl DynamicTabler) map[string]any { |