mirror of
https://github.com/evilsocket/arc.git
synced 2024-05-26 22:37:37 +03:00
19 lines
320 B
Go
19 lines
320 B
Go
/*
|
|
* Arc - Copyleft of Simone 'evilsocket' Margaritelli.
|
|
* evilsocket at protonmail dot com
|
|
* https://www.evilsocket.net/
|
|
*
|
|
* See LICENSE.
|
|
*/
|
|
package utils
|
|
|
|
// InSlice return if a is in list
|
|
func InSlice(a string, list []string) bool {
|
|
for _, b := range list {
|
|
if b == a {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|