up peer update
This commit is contained in:
1 parent
497dfb2402
commit
02232fc343
3 files changed
+39
-9
No files matched your search
@@ -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
|
||||
}
|
||||
Reference in new issue
Block a user