(re *regexp.Regexp)
| 75 | }) |
| 76 | |
| 77 | func searchEnv(re *regexp.Regexp) string { |
| 78 | for _, env := range envValues() { |
| 79 | match := re.FindString(env) |
| 80 | if match != "" { |
| 81 | return match |
| 82 | } |
| 83 | } |
| 84 | return "" |
| 85 | } |
| 86 | |
| 87 | // searchGlobs iterates over the paths matched by multiple [filepath.Glob] |
| 88 | // patterns. It will not yield a path more than once, even if the path matches |