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