Answers for "golang convert strijg to int64"

Go
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)
}
Posted by: Guest on May-09-2020
0

int to int64 golang

var i int = 32
j := int64(i)
Posted by: Guest on April-08-2021

Code answers related to "golang convert strijg to int64"

Browse Popular Code Answers by Language