Check out example codes for "golang convert string to int64". It will help you in understanding the concepts better.

Code Example 1

s := "97"
n, err := strconv.ParseInt(s, 10, 64)
if err == nil {
    fmt.Printf("%d of type %T", n, n)
}

Code Example 2

str := strconv.Itoa(12)

Learn ReactJs, React Native from akashmittal.com