Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for IsStandardImportPath (0.2 sec)

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

    	}
    
    	// Check each module on the build list.
    	var dirs, roots []string
    	var mods []module.Version
    
    	// Is the package in the standard library?
    	pathIsStd := search.IsStandardImportPath(path)
    	if pathIsStd && modindex.IsStandardPackage(cfg.GOROOT, cfg.BuildContext.Compiler, path) {
    		for _, mainModule := range MainModules.Versions() {
    			if MainModules.InGorootSrc(mainModule) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/load/pkg.go

    	p.Doc = pp.Doc
    	p.Root = pp.Root
    	p.ConflictDir = pp.ConflictDir
    	p.BinaryOnly = pp.BinaryOnly
    
    	// TODO? Target
    	p.Goroot = pp.Goroot
    	p.Standard = p.Goroot && p.ImportPath != "" && search.IsStandardImportPath(p.ImportPath)
    	p.GoFiles = pp.GoFiles
    	p.CgoFiles = pp.CgoFiles
    	p.IgnoredGoFiles = pp.IgnoredGoFiles
    	p.InvalidGoFiles = pp.InvalidGoFiles
    	p.IgnoredOtherFiles = pp.IgnoredOtherFiles
    	p.CFiles = pp.CFiles
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  3. src/cmd/go/internal/modload/load.go

    		ld.applyPkgFlags(ctx, pkg, pkgInAll)
    	}
    	if ld.AllowPackage != nil {
    		if err := ld.AllowPackage(ctx, pkg.path, pkg.mod); err != nil {
    			pkg.err = err
    		}
    	}
    
    	pkg.inStd = (search.IsStandardImportPath(pkg.path) && search.InDir(pkg.dir, cfg.GOROOTsrc) != "")
    
    	var imports, testImports []string
    
    	if cfg.BuildContext.Compiler == "gccgo" && pkg.inStd {
    		// We can't scan standard packages for gccgo.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modget/get.go

    			panic(fmt.Sprintf("internal error: queryPath called with pattern %q", q.pattern))
    		}
    		if q.version == "none" {
    			panic(`internal error: queryPath called with version "none"`)
    		}
    
    		if search.IsStandardImportPath(q.pattern) {
    			stdOnly := module.Version{}
    			packages, _ := r.matchInModule(ctx, q.pattern, stdOnly)
    			if len(packages) > 0 {
    				if q.rawVersion != "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 18:26:32 UTC 2024
    - 66.5K bytes
    - Viewed (0)
Back to top