user82135
0
Q:

golang convert string to int64

Int, err := strconv.Atoi("12345")
4
str := strconv.Itoa(12)
5
s := "97"
n, err := strconv.ParseInt(s, 10, 64)
if err == nil {
    fmt.Printf("%d of type %T", n, n)
}
1

New to Communities?

Join the community