IsInterface reports whether t is an interface type.
(t Type)
| 81 | |
| 82 | // IsInterface reports whether t is an interface type. |
| 83 | func IsInterface(t Type) bool { |
| 84 | _, ok := under(t).(*Interface) |
| 85 | return ok |
| 86 | } |
| 87 | |
| 88 | // isNonTypeParamInterface reports whether t is an interface type but not a type parameter. |
| 89 | func isNonTypeParamInterface(t Type) bool { |
no test coverage detected