add proxy

This commit is contained in:
微凉
2021-09-04 19:52:56 +08:00
parent eefe53ff01
commit b51b4e083d
7 changed files with 107 additions and 7 deletions

View File

@@ -56,3 +56,13 @@ func VersionCompare(version1, version2 string) int {
}
return 0
}
// HasSuffixes check string has suffixes in string array.
func HasSuffixes(str string, suffixes []string) bool {
for _, suffix := range suffixes {
if strings.HasSuffix(str,suffix) {
return true
}
}
return false
}