15 lines
153 B
Go
15 lines
153 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"unicode"
|
||
|
)
|
||
|
|
||
|
func isInt(s string) bool {
|
||
|
for _, c := range s {
|
||
|
if !unicode.IsDigit(c) {
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
return true
|
||
|
}
|