Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for goFiles (0.14 sec)

  1. src/go/build/build_test.go

    		t.Errorf("pkg.Name = %q; want %q", pkg.Name, wantName)
    	}
    
    	if wantGoFiles := []string{"file.go", "file_appengine.go"}; !reflect.DeepEqual(pkg.GoFiles, wantGoFiles) {
    		t.Errorf("pkg.GoFiles = %q; want %q", pkg.GoFiles, wantGoFiles)
    	}
    
    	if wantInvalidFiles := []string{"file_appengine.go"}; !reflect.DeepEqual(pkg.InvalidGoFiles, wantInvalidFiles) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 15 16:24:01 UTC 2023
    - 23.9K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/go/internal/list/list.go

    files presented to the compiler. Typically this means that it repeats
    the files listed in GoFiles and then also adds the Go code generated
    by processing CgoFiles and SwigFiles. The Imports list contains the
    union of all imports from both GoFiles and CompiledGoFiles.
    
    The -deps flag causes list to iterate over not just the named packages
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  9. misc/go_android_exec/main.go

    			if err := adbCopyTree(deviceCwd, importPath); err != nil {
    				return 0, err
    			}
    
    			// Copy .go files from the package.
    			goFiles, err := filepath.Glob("*.go")
    			if err != nil {
    				return 0, err
    			}
    			if len(goFiles) > 0 {
    				args := append(append([]string{"push"}, goFiles...), deviceCwd)
    				if err := adb(args...); err != nil {
    					return 0, err
    				}
    			}
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 21 17:46:57 UTC 2023
    - 15.3K bytes
    - Viewed (0)
  10. src/go/internal/gcimporter/gcimporter_test.go

    		t.Skipf("gc-built packages not available (compiler = %s)", runtime.Compiler)
    	}
    
    	// Get list of packages in stdlib. Filter out test-only packages with {{if .GoFiles}} check.
    	var stderr bytes.Buffer
    	cmd := exec.Command("go", "list", "-f", "{{if .GoFiles}}{{.ImportPath}}{{end}}", "std")
    	cmd.Stderr = &stderr
    	out, err := cmd.Output()
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
Back to top