Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 54 for GoFiles (0.88 sec)

  1. src/go/build/build.go

    	ConflictDir   string   // this directory shadows Dir in $GOPATH
    	BinaryOnly    bool     // cannot be rebuilt from source (has //go:binary-only-package comment)
    
    	// Source files
    	GoFiles           []string // .go source files (excluding CgoFiles, TestGoFiles, XTestGoFiles)
    	CgoFiles          []string // .go source files that import "C"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  2. src/go/types/stdlib_test.go

    			return nil, nil // no *.go files, not an error
    		}
    		return nil, err
    	}
    	if excluded[pkg.ImportPath] {
    		return nil, nil
    	}
    	var filenames []string
    	for _, name := range pkg.GoFiles {
    		filenames = append(filenames, filepath.Join(pkg.Dir, name))
    	}
    	if includeTest {
    		for _, name := range pkg.TestGoFiles {
    			filenames = append(filenames, filepath.Join(pkg.Dir, name))
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 04:39:56 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  3. src/cmd/doc/pkg.go

    	// include tells parser.ParseDir which files to include.
    	// That means the file must be in the build package's GoFiles or CgoFiles
    	// list only (no tag-ignored files, tests, swig or other non-Go files).
    	include := func(info fs.FileInfo) bool {
    		for _, name := range pkg.GoFiles {
    			if name == info.Name() {
    				return true
    			}
    		}
    		for _, name := range pkg.CgoFiles {
    			if name == info.Name() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
  4. src/cmd/go/internal/modindex/read.go

    			directives = &p.XTestDirectives
    		case isTest:
    			fileList = &p.TestGoFiles
    			importMap = testImportPos
    			embedMap = testEmbedPos
    			directives = &p.TestDirectives
    		default:
    			fileList = &p.GoFiles
    			importMap = importPos
    			embedMap = embedPos
    			directives = &p.Directives
    		}
    		*fileList = append(*fileList, name)
    		if importMap != nil {
    			for _, imp := range imports {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/stdlib_test.go

    			return nil, nil // no *.go files, not an error
    		}
    		return nil, err
    	}
    	if excluded[pkg.ImportPath] {
    		return nil, nil
    	}
    	var filenames []string
    	for _, name := range pkg.GoFiles {
    		filenames = append(filenames, filepath.Join(pkg.Dir, name))
    	}
    	if includeTest {
    		for _, name := range pkg.TestGoFiles {
    			filenames = append(filenames, filepath.Join(pkg.Dir, name))
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:18:33 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. src/cmd/internal/testdir/testdir_test.go

    		if _, err := os.Stat(filepath.Join(testenv.GOROOT(t), "VERSION")); err == nil {
    			t.Skipf("skipping: GOROOT/test not present")
    		}
    	}
    
    	for _, dir := range dirs {
    		for _, goFile := range goFiles(t, dir) {
    			test := test{testCommon: common, dir: dir, goFile: goFile}
    			t.Run(path.Join(dir, goFile), func(t *testing.T) {
    				t.Parallel()
    				test.T = t
    				testError := test.run()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
  7. src/cmd/cgo/out.go

    	base := srcfile
    	base = strings.TrimSuffix(base, ".go")
    	base = filepath.Base(base)
    	fgo1 := creat(*objDir + base + ".cgo1.go")
    	fgcc := creat(*objDir + base + ".cgo2.c")
    
    	p.GoFiles = append(p.GoFiles, base+".cgo1.go")
    	p.GccFiles = append(p.GccFiles, base+".cgo2.c")
    
    	// Write Go output: Go input with rewrites of C.xxx to _C_xxx.
    	fmt.Fprintf(fgo1, "// Code generated by cmd/cgo; DO NOT EDIT.\n\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 29 16:41:10 UTC 2024
    - 59.6K bytes
    - Viewed (0)
  8. src/cmd/go/alldocs.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: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
  9. src/cmd/go/internal/work/build.go

    }
    
    // omitTestOnly returns pkgs with test-only packages removed.
    func omitTestOnly(pkgs []*load.Package) []*load.Package {
    	var list []*load.Package
    	for _, p := range pkgs {
    		if len(p.GoFiles)+len(p.CgoFiles) == 0 && !p.Internal.CmdlinePkgLiteral {
    			// Package has no source files,
    			// perhaps due to build tags or perhaps due to only having *_test.go files.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 17:22:59 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  10. src/cmd/go/internal/modload/load.go

    // figure out what the error-reporting actually ought to be.
    func ImportFromFiles(ctx context.Context, gofiles []string) {
    	rs := LoadModFile(ctx)
    
    	tags := imports.Tags()
    	imports, testImports, err := imports.ScanFiles(gofiles, tags)
    	if err != nil {
    		base.Fatal(err)
    	}
    
    	loaded = loadFromRoots(ctx, loaderParams{
    		PackageOpts: PackageOpts{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 14:56:56 UTC 2024
    - 84K bytes
    - Viewed (0)
Back to top