13 lines
152 B
Go
13 lines
152 B
Go
package tools
|
|
|
|
import "unicode"
|
|
|
|
func IsASCII(s string) bool {
|
|
for _, c := range s {
|
|
if c > unicode.MaxASCII {
|
|
return false
|
|
}
|
|
}
|
|
return true
|
|
}
|