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

force case on stringsliceflags? #2064

Open
sevenrats opened this issue Feb 25, 2025 · 0 comments
Open

force case on stringsliceflags? #2064

sevenrats opened this issue Feb 25, 2025 · 0 comments
Labels
area/v2 relates to / is being considered for v2 kind/question someone asking a question status/triage maintainers still need to look into this

Comments

@sevenrats
Copy link

my question is...
I have a particular StringSliceFlag and I want the values to be lowercase no matter the case that is entered. I am a bit new to golang and your lib and am curious what the best approach would be.
so for example I have the stringsliceflag "domains" and a user might enter ... --domains VDI-UNCLEBOB ... I want the value of flgDomains to be ["vdi-unclebob"]

@sevenrats sevenrats added area/v2 relates to / is being considered for v2 kind/question someone asking a question status/triage maintainers still need to look into this labels Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/v2 relates to / is being considered for v2 kind/question someone asking a question status/triage maintainers still need to look into this
Projects
None yet
Development

No branches or pull requests

1 participant