- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for findGOROOT (0.16 sec)
-
src/cmd/go/internal/cfg/cfg.go
func envOr(key, def string) string { val := Getenv(key) if val == "" { val = def } return val } // There is a copy of findGOROOT, isSameDir, and isGOROOT in // x/tools/cmd/godoc/goroot.go. // Try to keep them in sync for now. // findGOROOT returns the GOROOT value, using either an explicitly // provided environment variable, a GOROOT that contains the current
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 24 17:13:51 UTC 2024 - 19.3K bytes - Viewed (0) -
misc/go_android_exec/main.go
return err } s, err := io.ReadAll(stat) if err != nil { return err } if string(s) == goVersion { return nil } goroot, err := findGoroot() if err != nil { return err } // Delete the device's GOROOT, GOPATH and any leftover test data, // and recreate GOROOT. if err := adb("exec-out", "rm", "-rf", deviceRoot); err != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 21 17:46:57 UTC 2023 - 15.3K bytes - Viewed (0) -
src/internal/testenv/testenv.go
for _, envVar := range strings.Fields(cfg.KnownEnv) { os.Getenv(envVar) } return path } var ( gorootOnce sync.Once gorootPath string gorootErr error ) func findGOROOT() (string, error) { gorootOnce.Do(func() { gorootPath = runtime.GOROOT() if gorootPath != "" { // If runtime.GOROOT() is non-empty, assume that it is valid. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 16:41:38 UTC 2024 - 15.7K bytes - Viewed (0)