github.com/rita33cool1/iot-system-gateway@v0.0.0-20200911033302-e65bde238cc5/docker-engine/builder/dockerfile/shell/equal_env_windows.go (about)

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