You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/api/internal/utils/utils.go

12 lines
209 B

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
}