1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 14:59:41 +02:00

fix(home): fix home page filters EE-2972 (#6789)

This commit is contained in:
Prabhat Khera 2022-04-26 12:17:36 +12:00 committed by GitHub
parent 5b77edb76d
commit bebee78152
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 516 additions and 167 deletions

View file

@ -0,0 +1,11 @@
package utils
// Contains returns true if the given int is contained in the given slice of int.
func Contains(s []int, e int) bool {
for _, a := range s {
if a == e {
return true
}
}
return false
}