Moves builder/shell_parser and into its own subpackage at builder/shell since it has no dependencies other than the standard library. This will make it much easier to vendor for downstream libraries, without pulling all the dependencies of builder/. Fixes #36154 Signed-off-by: Matt Rickard <mrick@google.com> Upstream-commit: a634526d14639c6b98c509a069ef29e2b69c0ef0 Component: engine
10 lines
253 B
Go
10 lines
253 B
Go
package shell
|
|
|
|
import "strings"
|
|
|
|
// EqualEnvKeys compare two strings and returns true if they are equal. On
|
|
// Windows this comparison is case insensitive.
|
|
func EqualEnvKeys(from, to string) bool {
|
|
return strings.ToUpper(from) == strings.ToUpper(to)
|
|
}
|