mirror of
https://github.com/lejianwen/rustdesk-api.git
synced 2025-11-29 16:43:17 +00:00
up peer update
This commit is contained in:
@@ -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