up peer update

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

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
}