Deref is Indirect for reflect.Types
(t reflect.Type)
| 229 | |
| 230 | // Deref is Indirect for reflect.Types |
| 231 | func Deref(t reflect.Type) reflect.Type { |
| 232 | if t.Kind() == reflect.Ptr { |
| 233 | t = t.Elem() |
| 234 | } |
| 235 | return t |
| 236 | } |
| 237 | |
| 238 | // -- helpers & utilities -- |
| 239 |
no test coverage detected