The code generator currently assumes that the target interfaces are exported which generates unexpected code when the target is unexported as it is not capitalized, for example:
type target interface {
// ...
}
would generate an unexported struct and an odd constructor:
The code generator currently assumes that the target interfaces are exported which generates unexpected code when the target is unexported as it is not capitalized, for example:
would generate an unexported struct and an odd constructor: