Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexported interfaces are not handled correctly #35

Closed
csueiras opened this issue Feb 22, 2021 · 0 comments · Fixed by #36
Closed

Unexported interfaces are not handled correctly #35

csueiras opened this issue Feb 22, 2021 · 0 comments · Fixed by #36
Labels
bug Something isn't working

Comments

@csueiras
Copy link
Owner

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:

type target struct {
...
}

func Newtarget() *target {
...
}
@csueiras csueiras added the bug Something isn't working label Feb 22, 2021
csueiras added a commit that referenced this issue Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant