mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 06:49:40 +02:00
11 lines
209 B
Go
11 lines
209 B
Go
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
|
|
}
|