-
Notifications
You must be signed in to change notification settings - Fork 55
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
Support custom markers #76
Conversation
@thbkrkr PTAL |
Hi @zirain, I saw your PR but it's been a super busy week. It looks good in principle. We haven't been very good at updating the doc recently with all possible features. What do you think about adding a features section at the bottom of the readme and briefly detailing this new one? |
sure, will do it later. |
continue | ||
} | ||
|
||
if err := registry.Define(marker.Name, t, struct{}{}); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we support custom markers with value?
I think that by defining the custom marker with the output type struct{}{}
, it is not possible to have a custom marker with a value. It is kind of a shame.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's start with no-value marker, we can do that later?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, we can do that later.
fix: #70