Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 91 for importpath (0.15 sec)

  1. src/internal/coverage/cformat/format.go

    // same import path; counter data values will be accumulated.
    func (fm *Formatter) SetPackage(importpath string) {
    	if importpath == fm.pkg {
    		return
    	}
    	fm.pkg = importpath
    	ps, ok := fm.pm[importpath]
    	if !ok {
    		ps = new(pstate)
    		fm.pm[importpath] = ps
    		ps.unitTable = make(map[extcu]uint32)
    		ps.funcTable = make(map[fnfile]uint32)
    	}
    	fm.p = ps
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/work/cover.go

    		// Check to make sure the meta-data file fragment exists
    		//  and has content (may be empty if package has no functions).
    		if fi, err := os.Stat(metaFilesFile); err != nil {
    			continue
    		} else if fi.Size() == 0 {
    			continue
    		}
    		collection.ImportPaths = append(collection.ImportPaths, dep.Package.ImportPath)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 19:09:38 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/list_pgo_issue66218.txt

    # the non-pgo variant's slice when it modifies the pgo variant's Imports field to
    # add the [.ForMain] suffix.
    
    go list -f 'ImportPath: "{{.ImportPath}}", Imports: "{{.Imports}}", ImportMap: "{{.ImportMap}}"' m/a m/b
    cmp stdout want
    
    -- want --
    ImportPath: "m/a", Imports: "[m/b [m/a]]", ImportMap: "map[m/b:m/b [m/a]]"
    ImportPath: "m/b", Imports: "[m/c]", ImportMap: "map[]"
    -- go.mod --
    module m
    
    go 1.23
    
    -- a/a.go --
    package main
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 615 bytes
    - Viewed (0)
  4. src/cmd/go/internal/load/pkg.go

    	// src/cmd/go/internal/modcmd/vendor.go
    	fold := str.ToFold(p.ImportPath)
    	if other := foldPath[fold]; other == "" {
    		foldPath[fold] = p.ImportPath
    	} else if other != p.ImportPath {
    		setError(ImportErrorf(p.ImportPath, "case-insensitive import collision: %q and %q", p.ImportPath, other))
    		return
    	}
    
    	if !SafeArg(p.ImportPath) {
    		setError(ImportErrorf(p.ImportPath, "invalid import path %q", p.ImportPath))
    		return
    	}
    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/import.go

    	}
    	return message + hint
    }
    
    func (e *ImportMissingSumError) ImportPath() string {
    	return e.importPath
    }
    
    type invalidImportError struct {
    	importPath string
    	err        error
    }
    
    func (e *invalidImportError) ImportPath() string {
    	return e.importPath
    }
    
    func (e *invalidImportError) Error() string {
    	return e.err.Error()
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 15:21:14 UTC 2024
    - 27.7K bytes
    - Viewed (0)
  6. src/cmd/go/internal/load/test.go

    			pxtestErr = err
    		}
    		if p1.Incomplete {
    			pxtestIncomplete = true
    		}
    		if p1.ImportPath == p.ImportPath {
    			pxtestNeedsPtest = true
    		} else {
    			ximports = append(ximports, p1)
    		}
    		p.XTestImports[i] = p1.ImportPath
    	}
    	p.XTestEmbedFiles, xtestEmbed, err = resolveEmbed(p.Dir, p.XTestEmbedPatterns)
    	if err != nil && pxtestErr == nil {
    		pxtestErr = &PackageError{
    			ImportStack: stk.Copy(),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  7. src/cmd/go/internal/vcs/vcs.go

    	}
    	return rr, err
    }
    
    var errUnknownSite = errors.New("dynamic lookup required to find mapping")
    
    // repoRootFromVCSPaths attempts to map importPath to a repoRoot
    // using the mappings defined in vcsPaths.
    func repoRootFromVCSPaths(importPath string, security web.SecurityMode, vcsPaths []*vcsPath) (*RepoRoot, error) {
    	if str.HasPathPrefix(importPath, "example.net") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:18 UTC 2024
    - 46.2K bytes
    - Viewed (0)
  8. src/go/doc/comment/print.go

    // using baseURL as a prefix for links to other packages.
    //
    // The possible forms returned by DefaultURL are:
    //   - baseURL/ImportPath, for a link to another package
    //   - baseURL/ImportPath#Name, for a link to a const, func, type, or var in another package
    //   - baseURL/ImportPath#Recv.Name, for a link to a method in another package
    //   - #Name, for a link to a const, func, type, or var in this package
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  9. src/go/doc/doc.go

    // then lookupPackage returns that import.
    // If multiple packages are imported as name, importPath returns "", false.
    // Otherwise, if name is the name of p itself, importPath returns "", true,
    // to signal a reference to p.
    // Otherwise, importPath returns "", false.
    func (p *Package) lookupPackage(name string) (importPath string, ok bool) {
    	if path, ok := p.importByName[name]; ok {
    		if path == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  10. src/cmd/doc/pkg.go

    		for _, root := range codeRoots() {
    			if pkg.build.Dir == root.dir {
    				importPath = root.importPath
    				break
    			}
    			if strings.HasPrefix(pkg.build.Dir, root.dir+string(filepath.Separator)) {
    				suffix := filepath.ToSlash(pkg.build.Dir[len(root.dir)+1:])
    				if root.importPath == "" {
    					importPath = suffix
    				} else {
    					importPath = root.importPath + "/" + suffix
    				}
    				break
    			}
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
Back to top