Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for RootPath (0.08 sec)

  1. src/cmd/go/internal/modload/init.go

    	}
    
    	// Look for vendor.json declaring import path.
    	data, _ = os.ReadFile(filepath.Join(dir, "vendor/vendor.json"))
    	var cfg2 struct{ RootPath string }
    	json.Unmarshal(data, &cfg2)
    	if cfg2.RootPath != "" {
    		return cfg2.RootPath, nil
    	}
    
    	// Look for path in GOPATH.
    	var badPathErr error
    	for _, gpdir := range filepath.SplitList(cfg.BuildContext.GOPATH) {
    		if gpdir == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 18:36:30 UTC 2024
    - 69.8K bytes
    - Viewed (0)
Back to top