Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for indexModFile (0.15 sec)

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

    		}
    		replaceMap[r.Old] = r.New
    	}
    	return replaceMap
    }
    
    // indexModFile rebuilds the index of modFile.
    // If modFile has been changed since it was first read,
    // modFile.Cleanup must be called before indexModFile.
    func indexModFile(data []byte, modFile *modfile.File, mod module.Version, needsFix bool) *modFileIndex {
    	i := new(modFileIndex)
    	i.data = data
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 26 17:53:40 UTC 2023
    - 26.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/modload/init.go

    				}
    			}
    			if !ok {
    				continue
    			}
    		}
    
    		modFiles = append(modFiles, f)
    		mainModule := f.Module.Mod
    		mainModules = append(mainModules, mainModule)
    		indices = append(indices, indexModFile(data, f, mainModule, fixed))
    
    		if err := module.CheckImportPath(f.Module.Mod.Path); err != nil {
    			if pathErr, ok := err.(*module.InvalidPathError); ok {
    				pathErr.Kind = "module"
    			}
    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