huh icon indicating copy to clipboard operation
huh copied to clipboard

Get input as an integer or other type

Open intercepted16 opened this issue 7 months ago • 4 comments

Is your feature request related to a problem? Please describe. Yes; I am trying to get an integer from the user through the NewInput function, and it seems that I can't because the type expected in Value is a pointer to a string, not an integer.

Describe the solution you'd like An option to specify the type as a generic type argument.

Describe alternatives you've considered An alternative is to provide a function that takes a function as an argument which converts the specified value to an integer.

Additional context Add any other context or screenshots about the feature request here.

intercepted16 avatar Jun 29 '24 01:06 intercepted16