How do I convert any given number which can be a int or float64 to string ?
Using strconv.FormatFloat or FormatInt I have to specify that the given number is a float or integer. In my case it is unknown what I get.
Behaviour:
When I get a 5
it should be converted into "5"
and not "5.00"
When I get a 1.23
it should be converted into "1.23"
and not "1"