- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 23 for Pkgs (0.12 sec)
-
src/cmd/go/internal/work/build.go
func oneMainPkg(pkgs []*load.Package) []*load.Package { if len(pkgs) != 1 || pkgs[0].Name != "main" { base.Fatalf("-buildmode=%s requires exactly one main package", cfg.BuildBuildmode) } return pkgs } var pkgsFilter = func(pkgs []*load.Package) []*load.Package { return pkgs } func runBuild(ctx context.Context, cmd *base.Command, args []string) { modload.InitWorkfile() BuildInit() b := NewBuilder("") defer func() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 21 17:22:59 UTC 2024 - 33.2K bytes - Viewed (0) -
src/cmd/go/internal/list/list.go
} pkgs := load.PackagesAndErrors(ctx, pkgOpts, args) if !*listE { w := 0 for _, pkg := range pkgs { if pkg.Error != nil { base.Errorf("%v", pkg.Error) continue } pkgs[w] = pkg w++ } pkgs = pkgs[:w] base.ExitIfErrors() } if *listTest { c := cache.Default()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 16:56:39 UTC 2024 - 33.3K bytes - Viewed (0) -
src/cmd/go/internal/search/search.go
Pkgs []string // matching packages (import paths) Errs []error // errors matching the patterns to packages, NOT errors loading those packages // Errs may be non-empty even if len(Pkgs) > 0, indicating that some matching // packages could be located but results may be incomplete. // If len(Pkgs) == 0 && len(Errs) == 0, the pattern is well-formed but did not
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 31 20:33:05 UTC 2023 - 15.4K bytes - Viewed (0) -
cmd/import-boss/main.go
func main() { klog.InitFlags(nil) pflag.CommandLine.AddGoFlagSet(flag.CommandLine) pflag.Parse() pkgs, err := loadPkgs(pflag.Args()...) if err != nil { klog.Errorf("failed to load packages: %v", err) } pkgs = massage(pkgs) boss := newBoss(pkgs) var allErrs []error for _, pkg := range pkgs { if pkgErrs := boss.Verify(pkg); pkgErrs != nil { allErrs = append(allErrs, pkgErrs...) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 12:36:49 UTC 2024 - 14.7K bytes - Viewed (0) -
src/cmd/covdata/metamerge.go
} func (mm *metaMerge) visitPackage(pd *decodemeta.CoverageMetaDataDecoder, pkgIdx uint32, pcombine bool) { p, ok := mm.pkm[pd.PackagePath()] if !ok { p = &pkstate{ pkgIdx: uint32(len(mm.pkgs)), } mm.pkgs = append(mm.pkgs, p) mm.pkm[pd.PackagePath()] = p if pcombine { p.pcombinestate = new(pcombinestate) cmdb, err := encodemeta.NewCoverageMetaDataBuilder(pd.PackagePath(), pd.PackageName(), pd.ModulePath())
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 12 17:17:47 UTC 2024 - 12.1K bytes - Viewed (0) -
src/cmd/compile/internal/test/inl_test.go
"compress/flate.byLiteral.Less": true, "compress/flate.byLiteral.Swap": true, } notInlinedReason := make(map[string]string) pkgs := make([]string, 0, len(want)) for pname, fnames := range want { pkgs = append(pkgs, pname) for _, fname := range fnames { fullName := pname + "." + fname if _, ok := notInlinedReason[fullName]; ok { t.Errorf("duplicate func: %s", fullName)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 04:07:57 UTC 2024 - 10.7K bytes - Viewed (0) -
src/cmd/covdata/dump.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 23 11:36:57 UTC 2023 - 11.2K bytes - Viewed (0) -
src/cmd/go/internal/modcmd/vendor.go
case isExplicit[m]: io.WriteString(w, "## explicit\n") case goVersion != "": fmt.Fprintf(w, "## go %s\n", goVersion) } pkgs := modpkgs[m] sort.Strings(pkgs) for _, pkg := range pkgs { fmt.Fprintf(w, "%s\n", pkg) vendorPkg(vdir, pkg) } } if includeAllReplacements { // Record unused and wildcard replacements at the end of the modules.txt file:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 14 14:19:59 UTC 2024 - 14.5K bytes - Viewed (0) -
src/cmd/go/internal/work/action.go
// That is, the input a1 represents "go build pkgs" and the result represents "go build -buildmode=shared pkgs". func (b *Builder) buildmodeShared(mode, depMode BuildMode, args []string, pkgs []*load.Package, a1 *Action) *Action { name, err := libname(args, pkgs) if err != nil { base.Fatalf("%v", err) } return b.linkSharedAction(mode, depMode, name, a1) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:39:17 UTC 2024 - 32.7K bytes - Viewed (0) -
src/internal/testenv/testenv.go
// as for the packages transitively imported by the package(s) in pkgs. // // pkgs may include any package pattern that is valid to pass to 'go list', // so it may also be a list of Go source files all in the same directory. func WriteImportcfg(t testing.TB, dstPath string, packageFiles map[string]string, pkgs ...string) { t.Helper() icfg := new(bytes.Buffer) icfg.WriteString("# import config\n")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 16:41:38 UTC 2024 - 15.7K bytes - Viewed (0)