search download

This commit is contained in:
Simon Ding
2024-07-07 15:02:40 +08:00
parent 1c75ceb6ba
commit 6debad6eb9
6 changed files with 72 additions and 10 deletions

13
pkg/utils/utils.go Normal file
View File

@@ -0,0 +1,13 @@
package utils
import "unicode"
func isASCII(s string) bool {
for _, c := range s {
if c > unicode.MaxASCII {
return false
}
}
return true
}