Young Xu
72c9cc2f15
docs: readme fix: upgrade with commit id feat: log to logrus upgrade: lormatter feat: strong search go module version fix: github repo no version fix: ignore google.golang.org upgrade: github api first commit
13 lines
189 B
Go
13 lines
189 B
Go
package gomod
|
|
|
|
import "strings"
|
|
|
|
func ElemIn(elems []string, target string) bool {
|
|
for _, elem := range elems {
|
|
if strings.Contains(target, elem) {
|
|
return true
|
|
}
|
|
}
|
|
return false
|
|
}
|