equal_env_windows.go 253 B

123456789
  1. package shell
  2. import "strings"
  3. // EqualEnvKeys compare two strings and returns true if they are equal. On
  4. // Windows this comparison is case insensitive.
  5. func EqualEnvKeys(from, to string) bool {
  6. return strings.ToUpper(from) == strings.ToUpper(to)
  7. }