MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / IsInterface

Function IsInterface

types/predicates.go:83–86  ·  view source on GitHub ↗

IsInterface reports whether t is an interface type.

(t Type)

Source from the content-addressed store, hash-verified

81
82// IsInterface reports whether t is an interface type.
83func 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.
89func isNonTypeParamInterface(t Type) bool {

Callers 8

isNonTypeParamInterfaceFunction · 0.85
interfaceMethodFunction · 0.85
NewMethodSetFunction · 0.85
isInterfacePtrFunction · 0.85
assertableToMethod · 0.85
newAssertableToMethod · 0.85
isInterfaceFunction · 0.85
IntuitiveMethodSetFunction · 0.85

Calls 1

underFunction · 0.85

Tested by

no test coverage detected