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

Support generic StringToVar maps #375

Open
SOF3 opened this issue May 17, 2023 · 1 comment
Open

Support generic StringToVar maps #375

SOF3 opened this issue May 17, 2023 · 1 comment

Comments

@SOF3
Copy link

SOF3 commented May 17, 2023

Support any Value implementation in map[string]V.

If the V implementation expects a comma, it is the responsibility of the user to recognize that it is impossible to provide a valid input.

@fredbi
Copy link
Collaborator

fredbi commented Oct 2, 2023

@SOF3 at the moment, this is not available. Hopefully, this repo will adopt generics some day.
Meanwhile, you may take a look at a generic implementation on top of pflag, that does just that:
https://github.com/fredbi/gflag

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

No branches or pull requests

2 participants