Documentation ¶
Overview ¶
Package generic provides methods to test whether a type conforms to a generic interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Match ¶
type Match struct { // Errors found matching the interface to the implementation. Errors []error // Bindings of generic type to matched type. Bindings map[reflect.Type]reflect.Type }
Match is the result of Implements.
func Implements ¶
Implements checks that ty implements the generic interface iface. Implements returns a Match which lists any generic type inconsistencies, and lists the mappings of generic types to implementation types. generics is a list of open types used by the generic interface iface.
Click to show internal directories.
Click to hide internal directories.