up peer update

This commit is contained in:
ljw committed 2024-10-28 19:15:13 +08:00
1 parent 497dfb2402
commit 02232fc343
3 files changed
+39 -9

No files matched your search

+9
View File
@@ -91,3 +91,12 @@ func Values[K comparable, V any](m map[K]V) []V {
}
return values
}
func InArray(k string, arr []string) bool {
for _, v := range arr {
if k == v {
return true
}
}
return false
}