mirror of
https://github.com/project-zot/zot.git
synced 2025-02-03 23:09:41 -05:00
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
|
|
}
|