Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for IsStandardImportPath (0.52 sec)

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

    	infoEnd, _   = hex.DecodeString("f932433186182072008242104116d8f2")
    )
    
    func isStandardImportPath(path string) bool {
    	return findStandardImportPath(path) != ""
    }
    
    func findStandardImportPath(path string) string {
    	if path == "" {
    		panic("findStandardImportPath called with empty path")
    	}
    	if search.IsStandardImportPath(path) {
    		if modindex.IsStandardPackage(cfg.GOROOT, cfg.BuildContext.Compiler, path) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. src/cmd/go/internal/search/search.go

    			if strings.HasPrefix(elem, ".") || strings.HasPrefix(elem, "_") || elem == "testdata" {
    				want = false
    			}
    
    			name := filepath.ToSlash(path[len(src):])
    			if m.pattern == "std" && (!IsStandardImportPath(name) || name == "cmd") {
    				// The name "std" is only the standard library.
    				// If the name is cmd, it's the root of the command tree.
    				want = false
    			}
    			if !treeCanMatch(name) {
    				want = false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 31 20:33:05 UTC 2023
    - 15.4K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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