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