allNum checks whether id consists of only numbers (0-9).
(id string)
| 61 | |
| 62 | // allNum checks whether id consists of only numbers (0-9). |
| 63 | func allNum(id string) bool { |
| 64 | for _, c := range []byte(id) { |
| 65 | if c > '9' || c < '0' { |
| 66 | return false |
| 67 | } |
| 68 | } |
| 69 | return true |
| 70 | } |
no outgoing calls
searching dependent graphs…