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