1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 06:49:40 +02:00
portainer/api/internal/utils/utils.go
2022-04-26 12:17:36 +12:00

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
}