Answers for "golang check if string is integer"

Go
0

golang string is digit

if _, err := strconv.Atoi(v); err == nil {
    fmt.Printf("%q looks like a number.\n", v)
}
Posted by: Guest on August-20-2020

Code answers related to "golang check if string is integer"

Browse Popular Code Answers by Language