-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
Proposal: add generic ParseAs
#299
Comments
caarlos0
added a commit
that referenced
this issue
Apr 1, 2024
closes #299 Signed-off-by: Carlos Alexandro Becker <[email protected]>
see #300 |
Oh, I was looking for this kind of discussion and was sure there was nothing. Thank you! |
caarlos0
added a commit
that referenced
this issue
Apr 2, 2024
* feat: ParseAs, ParseAsWithOptions, Must closes #299 Signed-off-by: Carlos Alexandro Becker <[email protected]> * build: build with go 1.17 as well Signed-off-by: Carlos Alexandro Becker <[email protected]> * feat: change min go version to 1.18 Signed-off-by: Carlos Alexandro Becker <[email protected]> --------- Signed-off-by: Carlos Alexandro Becker <[email protected]>
BorzdeG
pushed a commit
to BorzdeG/env
that referenced
this issue
Aug 24, 2024
* feat: ParseAs, ParseAsWithOptions, Must closes caarlos0#299 Signed-off-by: Carlos Alexandro Becker <[email protected]> * build: build with go 1.17 as well Signed-off-by: Carlos Alexandro Becker <[email protected]> * feat: change min go version to 1.18 Signed-off-by: Carlos Alexandro Becker <[email protected]> --------- Signed-off-by: Carlos Alexandro Becker <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
Thank you for your work!
While working with the library I thought what if there was a generic function that returned typed values. Something like that
Then the caller code would be
I understand that the difference is insignificant in the case above, but in many code bases I worked with it actually would be
What do you think?
The text was updated successfully, but these errors were encountered: