to integer in golang code example
Example 1: convert string to int golang
var s string
i, err := strconv.Atoi(s)
Example 2: int to int64 golang
var i int = 32
j := int64(i)
var s string
i, err := strconv.Atoi(s)
var i int = 32
j := int64(i)