mirror of
https://github.com/project-zot/zot.git
synced 2024-12-16 21:56:37 -05:00
12 lines
149 B
Go
12 lines
149 B
Go
|
package common
|
||
|
|
||
|
func Contains(slice []string, item string) bool {
|
||
|
for _, v := range slice {
|
||
|
if item == v {
|
||
|
return true
|
||
|
}
|
||
|
}
|
||
|
|
||
|
return false
|
||
|
}
|