Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/cmd/go/internal/cfg/cfg.go

    }
    
    func initEnvCache() {
    	envCache.m = make(map[string]string)
    	envCache.goroot = make(map[string]string)
    	if file, _, _ := EnvFile(); file != "" {
    		readEnvFile(file, "user")
    	}
    	goroot := findGOROOT(envCache.m["GOROOT"])
    	if goroot != "" {
    		readEnvFile(filepath.Join(goroot, "go.env"), "GOROOT")
    	}
    
    	// Save the goroot for func init calling SetGOROOT,
    	// and also overwrite anything that might have been in go.env.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.3K bytes
    - Viewed (0)
Back to top