forked from ogier/pflag
-
Notifications
You must be signed in to change notification settings - Fork 350
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
Value's Type method makes it not a drop-in replacement #228
Comments
This just caught me out too. Would be better if this could be made optional so it is a drop in replacement. |
Using reflect a default type string could easily be generated. The fact that implementing Type() string is forced on the user of this package is extremely annoying. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
Type
method onValue
means that you don't get drop-in replacement for the baseflag
package's equivalent.It's not hard to wrap, but this should be called out as a specific incompatibility in the package header. Additionally, the
Type
method should be properly documented.The text was updated successfully, but these errors were encountered: