Skip to content

feat: fail with non-pointer receivers#39

Draft
kzantow wants to merge 1 commit intoanchore:mainfrom
kzantow-anchore:feat/invoker
Draft

feat: fail with non-pointer receivers#39
kzantow wants to merge 1 commit intoanchore:mainfrom
kzantow-anchore:feat/invoker

Conversation

@kzantow
Copy link
Copy Markdown
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