strconv golang code example
Example 1: golang parse float64
f, err := strconv.ParseFloat("3.1415", 64)
Example 2: convert string to int golang
var s string
i, err := strconv.Atoi(s)
f, err := strconv.ParseFloat("3.1415", 64)
var s string
i, err := strconv.Atoi(s)