- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 130 for goFiles (0.35 sec)
-
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) -
src/cmd/go/testdata/script/mod_gobuild_import.txt
log.Fatal(err) } if p1.Dir != p2.Dir { log.Fatalf("different packages loaded with relative and absolute paths:\n\t%s\n\t%s", p1.Dir, p2.Dir) } fmt.Printf("%s\n%s\n", p1.Dir, strings.Join(p1.GoFiles, " ")) } -- testfindonly/x.go -- package main import ( "fmt" "go/build" "os" ) func main() { p, err := build.Import(os.Args[1], os.Args[2], build.FindOnly)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:18:16 UTC 2022 - 3K bytes - Viewed (0) -
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) -
src/go/types/gotype.go
if _, nogo := err.(*build.NoGoError); err != nil && !nogo { return nil, err } if *xtestFiles { return parseFiles(dir, pkginfo.XTestGoFiles) } filenames := append(pkginfo.GoFiles, pkginfo.CgoFiles...) if *testFiles { filenames = append(filenames, pkginfo.TestGoFiles...) } return parseFiles(dir, filenames) } func getPkgFiles(args []string) ([]*ast.File, error) { if len(args) == 0 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 18 17:59:44 UTC 2022 - 8.3K bytes - Viewed (0) -
src/runtime/align_test.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 08 14:52:12 UTC 2023 - 5.4K bytes - Viewed (0) -
src/cmd/dist/build.go
if !t.IsZero() && !strings.HasSuffix(p, ".a") && !shouldbuild(p, pkg) { return false } if strings.HasSuffix(p, ".go") { gofiles = append(gofiles, p) } else if strings.HasSuffix(p, ".s") { sfiles = append(sfiles, p) } if t.After(ttarg) { stale = true } return true }) // If there are no files to compile, we're done. if len(files) == 0 { return }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 18:34:40 UTC 2024 - 54K bytes - Viewed (0) -
src/go/internal/srcimporter/srcimporter.go
if p.packages[bp.ImportPath] == &importing { p.packages[bp.ImportPath] = nil } }() var filenames []string filenames = append(filenames, bp.GoFiles...) filenames = append(filenames, bp.CgoFiles...) files, err := p.parseFiles(bp.Dir, filenames) if err != nil { return nil, err } // type-check package files var firstHardErr error conf := types.Config{
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 23 18:54:32 UTC 2022 - 8.2K bytes - Viewed (0) -
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) -
src/cmd/go/internal/clean/clean.go
// Record which files are not in package main. // The others are. keep := func(list []string) { for _, f := range list { packageFile[f] = true } } keep(p.GoFiles) keep(p.CgoFiles) keep(p.TestGoFiles) keep(p.XTestGoFiles) } _, elem := filepath.Split(p.Dir) var allRemove []string // Remove dir-named executable only if this is package main.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 10.3K bytes - Viewed (0) -
cmd/import-boss/main_test.go
} } } func TestPackageDir(t *testing.T) { cases := []struct { input *packages.Package expect string }{{ input: &packages.Package{ PkgPath: "example.com/foo/bar/qux", GoFiles: []string{"/src/prj/file.go"}, IgnoredFiles: []string{"/otherdir/file.go"}, }, expect: filepath.Clean("/src/prj"), }, { input: &packages.Package{ PkgPath: "example.com/foo/bar/qux",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 12:36:49 UTC 2024 - 8.8K bytes - Viewed (0)