time.Second * time.Duration(userInputInt)
https://en.wikipedia.org/wiki/Dimensional_analysis
For the record, at least two languages, F# (which is statically typed) and Julia (which is strongly typed) do this 100% correctly
https://en.wikipedia.org/wiki/Dimensional_analysis
For the record, at least two languages, F# (which is statically typed) and Julia (which is strongly typed) do this 100% correctly