golang convert string to long code example
Example 1: golang parse float64
f, err := strconv.ParseFloat("3.1415", 64)
Example 2: golang convert string to int64
s := "97"
n, err := strconv.ParseInt(s, 10, 64)
if err == nil {
fmt.Printf("%d of type %T", n, n)
}