Evan Romasco-Kelly
05/23/2024, 5:47 PMfritz
05/23/2024, 8:25 PMfritz
05/23/2024, 8:26 PMfritz
05/23/2024, 8:34 PMr := regexp.MustCompile(` (?P<chip>T\d) `) // Matching on: Apple T[1|2] Security Chip
match := r.FindStringSubmatch(stdout.String())
if len(match) == 0 {
secureEnclaveCPU = ""
} else {
secureEnclaveCPU = match[1]
}
fritz
05/23/2024, 8:35 PMEvan Romasco-Kelly
05/24/2024, 5:46 PM