Answers for "check if a string is a number in golang"

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 "check if a string is a number in golang"

Browse Popular Code Answers by Language