arch/arm64: Support FEAT_CCIDX
[coreboot2.git] / util / intelp2m / platforms / common / template.go
blob296f169fb3f189df76938c1f0783590f034504a8
1 package common
3 import "strings"
5 // KeywordsCheck - check if one of the keyword from the <keywords> group is included in the
6 // <line> string. Returns false if no word was found, or true otherwise and also this word
7 // itself
8 func KeywordsCheck(line string, keywords ...string) (bool, string) {
9 for _, key := range keywords {
10 if strings.Contains(line, key) {
11 return true, key
14 return false, ""