Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for envKeyEqual (0.17 sec)

  1. src/runtime/env_posix.go

    	}
    	for _, s := range env {
    		if len(s) > len(key) && s[len(key)] == '=' && envKeyEqual(s[:len(key)], key) {
    			return s[len(key)+1:]
    		}
    	}
    	return ""
    }
    
    // envKeyEqual reports whether a == b, with ASCII-only case insensitivity
    // on Windows. The two strings must have the same length.
    func envKeyEqual(a, b string) bool {
    	if GOOS == "windows" { // case insensitive
    		for i := 0; i < len(a); i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 2.1K bytes
    - Viewed (0)
Back to top