go cast int to string code example
Example 1: golang convert int to string
str := strconv.Itoa(12)
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)
}
str := strconv.Itoa(12)
s := "97"
n, err := strconv.ParseInt(s, 10, 64)
if err == nil {
fmt.Printf("%d of type %T", n, n)
}