soc/intel/xeon_sp/util: Enhance lock_pam0123
[coreboot2.git] / util / intelp2m / platforms / lbg / template.go
blob74c39efadf192187f5d453ec37f5a34fc36aba1c
1 package lbg
3 type InheritanceTemplate interface {
4 GroupNameExtract(line string) (bool, string)
5 KeywordCheck(line string) bool
8 // GroupNameExtract - This function extracts the group ID, if it exists in a row
9 // line : string from the configuration file
10 // return
11 // bool : true if the string contains a group identifier
12 // string : group identifier
13 func (platform PlatformSpecific) GroupNameExtract(line string) (bool, string) {
14 return platform.InheritanceTemplate.GroupNameExtract(line)
17 // KeywordCheck - This function is used to filter parsed lines of the configuration file and
18 // returns true if the keyword is contained in the line.
19 // line : string from the configuration file
20 func (platform PlatformSpecific) KeywordCheck(line string) bool {
21 return platform.InheritanceTemplate.KeywordCheck(line)