- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 130 for goFiles (0.63 sec)
-
src/cmd/go/internal/load/test.go
ptest = new(Package) *ptest = *p ptest.Error = ptestErr ptest.Incomplete = incomplete ptest.ForTest = p.ImportPath ptest.GoFiles = nil ptest.GoFiles = append(ptest.GoFiles, p.GoFiles...) ptest.GoFiles = append(ptest.GoFiles, p.TestGoFiles...) ptest.Target = "" // Note: The preparation of the vet config requires that common // indexes in ptest.Imports and ptest.Internal.RawImports
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 14:01:23 UTC 2024 - 28.2K bytes - Viewed (0) -
src/cmd/go/internal/run/run.go
p.Target = "" // must build - not up to date if p.Internal.CmdlineFiles { //set executable name if go file is given as cmd-argument var src string if len(p.GoFiles) > 0 { src = p.GoFiles[0] } else if len(p.CgoFiles) > 0 { src = p.CgoFiles[0] } else { // this case could only happen if the provided source uses cgo // while cgo is disabled. hint := "" if !cfg.BuildContext.CgoEnabled {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 19:09:38 UTC 2023 - 6.9K bytes - Viewed (0) -
src/cmd/go/internal/fmtcmd/fmt.go
// Skip this error, as we will format // all files regardless. } else { base.Errorf("%v", pkg.Error) continue } } // Use pkg.gofiles instead of pkg.Dir so that // the command only applies to this package, // not to packages in subdirectories. files := base.RelPaths(pkg.InternalAllGoFiles()) for _, file := range files {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Nov 03 12:16:35 UTC 2022 - 3K bytes - Viewed (0) -
src/cmd/go/internal/work/gc.go
// same basename, so go from the overlay contents file path (passed to the compiler) // to the path the disk path would be rewritten to. cgoFiles := make(map[string]bool) for _, f := range a.Package.CgoFiles { cgoFiles[f] = true } // TODO(matloob): Higher up in the stack, when the logic for deciding when to make copies
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 15:37:44 UTC 2024 - 23K bytes - Viewed (0) -
src/cmd/go/internal/fix/fix.go
if modload.Enabled() && pkg.Module != nil && !pkg.Module.Main { if !printed { fmt.Fprintf(os.Stderr, "go: not fixing packages in dependency modules\n") printed = true } continue } // Use pkg.gofiles instead of pkg.Dir so that // the command only applies to this package, // not to packages in subdirectories. files := base.RelPaths(pkg.InternalAllGoFiles()) goVersion := "" if pkg.Module != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 05 17:52:29 UTC 2022 - 2.2K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/unitchecker/unitchecker.go
Dir string // (unused) ImportPath string // package path GoVersion string // minimum required Go version, such as "go1.21.0" GoFiles []string NonGoFiles []string IgnoredFiles []string ImportMap map[string]string // maps import path to package path
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13K bytes - Viewed (0) -
src/go/doc/doc.go
var ( goFiles = make(map[string]*ast.File) testGoFiles []*ast.File ) for i := range files { f := fset.File(files[i].Pos()) if f == nil { return nil, fmt.Errorf("file files[%d] is not found in the provided file set", i) } switch name := f.Name(); { case strings.HasSuffix(name, ".go") && !strings.HasSuffix(name, "_test.go"): goFiles[name] = files[i]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 11.2K bytes - Viewed (0) -
cmd/import-boss/main.go
return errs } // packageDir tries to figure out the directory of the specified package. func packageDir(pkg *packages.Package) string { if len(pkg.GoFiles) > 0 { return filepath.Dir(pkg.GoFiles[0]) } if len(pkg.IgnoredFiles) > 0 { return filepath.Dir(pkg.IgnoredFiles[0]) } return "" } type FileFormat struct { Rules []Rule InverseRules []Rule
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/go/internal/work/gccgo.go
return nil } func (tools gccgoToolchain) asm(b *Builder, a *Action, sfiles []string) ([]string, error) { p := a.Package var ofiles []string for _, sfile := range sfiles { base := filepath.Base(sfile) ofile := a.Objdir + base[:len(base)-len(".s")] + ".o" ofiles = append(ofiles, ofile) sfile, _ = fsys.OverlayPath(mkAbs(p.Dir, sfile)) defs := []string{"-D", "GOOS_" + cfg.Goos, "-D", "GOARCH_" + cfg.Goarch}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 02 22:18:34 UTC 2024 - 19K bytes - Viewed (0) -
src/cmd/go/internal/load/pkg.go
// exeFromFiles returns an executable name for a package // using the first element in GoFiles or CgoFiles collections without the prefix. // // Returns empty string in case of empty collection. func (p *Package) exeFromFiles() string { var src string if len(p.GoFiles) > 0 { src = p.GoFiles[0] } else if len(p.CgoFiles) > 0 { src = p.CgoFiles[0] } else { return "" } _, elem := filepath.Split(src)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 120K bytes - Viewed (0)