Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for importpath (0.16 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. cmd/preferredimports/preferredimports.go

    			for _, imp := range file.Imports {
    				importPath := strings.Replace(imp.Path.Value, "\"", "", -1)
    				pathSegments := strings.Split(importPath, "/")
    				importName := pathSegments[len(pathSegments)-1]
    				if imp.Name != nil {
    					importName = imp.Name.Name
    				}
    				for re, template := range aliases {
    					match := re.FindStringSubmatchIndex(importPath)
    					if match == nil {
    						// No match.
    						continue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:44 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  8. analysis/analysis-api-impl-base/tests/org/jetbrains/kotlin/analysis/api/impl/base/test/cases/components/importOptimizer/AbstractAnalysisApiImportOptimizerTest.kt

                analyseImports(mainFile)
            }
    
            val importAnalysisRendered = buildString {
                val sortedUsedDeclarations = importsAnalysis.usedDeclarations
                    .toSortedMap(compareBy { importPath -> importPath.toString() })
                    .mapValues { (_, importedNames) -> importedNames.sorted() }
    
                appendLine("USED DECLARATIONS:")
                for ((path, elements) in sortedUsedDeclarations) {
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Mar 27 16:04:54 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  9. src/testing/internal/testdeps/deps.go

    }
    
    func (TestDeps) WriteProfileTo(name string, w io.Writer, debug int) error {
    	return pprof.Lookup(name).WriteTo(w, debug)
    }
    
    // ImportPath is the import path of the testing binary, set by the generated main function.
    var ImportPath string
    
    func (TestDeps) ImportPath() string {
    	return ImportPath
    }
    
    // testLog implements testlog.Interface, logging actions by package os.
    type testLog struct {
    	mu  sync.Mutex
    	w   *bufio.Writer
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  10. src/cmd/go/internal/work/gc.go

    	}
    	rewrite := ""
    
    	rewriteDir := a.Package.Dir
    	if cfg.BuildTrimpath {
    		importPath := a.Package.Internal.OrigImportPath
    		if m := a.Package.Module; m != nil && m.Version != "" {
    			rewriteDir = m.Path + "@" + m.Version + strings.TrimPrefix(importPath, m.Path)
    		} else {
    			rewriteDir = importPath
    		}
    		rewrite += a.Package.Dir + "=>" + rewriteDir + ";"
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 18 15:37:44 UTC 2024
    - 23K bytes
    - Viewed (0)
Back to top