IsNumber checks if the given string is in the form of a number
(s string)
| 37 | |
| 38 | // IsNumber checks if the given string is in the form of a number |
| 39 | func IsNumber(s string) bool { |
| 40 | if s == "" { |
| 41 | return false |
| 42 | } |
| 43 | |
| 44 | return regexNumber.MatchString(s) |
| 45 | } |