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

feat: fail with non-pointer receivers #39

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kzantow
Copy link
Contributor

@kzantow kzantow commented Jan 30, 2024

This PR adds handling to determine if an interface implementation uses a pointer receiver and can fail if not using a pointer receiver. The AddFlags call is also updated to require pointer receivers and fail if AddFlags is implemented using a non-pointer receiver.

Fixes #38

Signed-off-by: Keith Zantow <kzantow@gmail.com>
@kzantow kzantow marked this pull request as draft January 30, 2024 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic if AddFlags does not have a pointer receiver
1 participant