mirror of
https://github.com/projectdiscovery/httpx
synced 2026-06-08 16:50:17 +00:00
12 lines
209 B
Go
12 lines
209 B
Go
package slice
|
|
|
|
// IntSliceContains check if a slice contains the specified int value
|
|
func IntSliceContains(sl []int, v int) bool {
|
|
for _, vv := range sl {
|
|
if vv == v {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|