Check out example codes for "golang string is digit". It will help you in understanding the concepts better.

Code Example 1

if _, err := strconv.Atoi(v); err == nil {
    fmt.Printf("%q looks like a number.\n", v)
}

Learn ReactJs, React Native from akashmittal.com