2018-06-02 00:30:18 +00:00
|
|
|
package shell
|
2018-01-30 23:58:21 +00:00
|
|
|
|
|
|
|
import "strings"
|
|
|
|
|
2018-06-30 12:59:32 +00:00
|
|
|
// EqualEnvKeys compare two strings and returns true if they are equal.
|
|
|
|
// On Unix this comparison is case sensitive.
|
|
|
|
// On Windows this comparison is case insensitive.
|
2018-01-30 23:58:21 +00:00
|
|
|
func EqualEnvKeys(from, to string) bool {
|
|
|
|
return strings.ToUpper(from) == strings.ToUpper(to)
|
|
|
|
}
|