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