huh
huh copied to clipboard
Get input as an integer or other type
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.