- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 84 for importmap (0.17 sec)
-
src/cmd/go/testdata/script/list_pgo_issue66218.txt
# add the [.ForMain] suffix. go list -f 'ImportPath: "{{.ImportPath}}", Imports: "{{.Imports}}", ImportMap: "{{.ImportMap}}"' m/a m/b cmp stdout want -- want -- ImportPath: "m/a", Imports: "[m/b [m/a]]", ImportMap: "map[m/b:m/b [m/a]]" ImportPath: "m/b", Imports: "[m/c]", ImportMap: "map[]" -- go.mod -- module m go 1.23 -- a/a.go -- package main import _ "m/b" -- a/default.pgo --
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 28 17:00:51 UTC 2024 - 615 bytes - Viewed (0) -
src/cmd/go/testdata/script/list_cgo_compiled_importmap.txt
# Because the import of "runtime/cgo" in the cgo-generated file actually refers # to "runtime/cgo [runtime.test]", the latter should be listed in the ImportMap. # BUG(#46462): Today, it is not. go list -deps -test -compiled -f '{{if eq .ImportPath "net [runtime.test]"}}{{printf "%q" .ImportMap}}{{end}}' runtime stdout '"sync":"sync \[runtime\.test\]"' # control
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 27 22:26:09 UTC 2023 - 1.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/internal/facts/imports.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package facts import ( "go/types" "golang.org/x/tools/internal/aliases" ) // importMap computes the import map for a package by traversing the // entire exported API each of its imports. // // This is a workaround for the fact that we cannot access the map used
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 3.5K bytes - Viewed (0) -
src/cmd/go/testdata/script/list_importmap.txt
go list -f '{{.ImportPath}}: {{.ImportMap}}' fmt a/b stdout 'fmt: map\[\]' stdout 'a/b: map\[c/d:a/vendor/c/d\]' # flag [fmt.test] should import fmt [fmt.test] as fmt # fmt.test should import testing [fmt.test] as testing # fmt.test should not import a modified os go list -deps -test -f '{{.ImportPath}} MAP: {{.ImportMap}}{{"\n"}}{{.ImportPath}} IMPORT: {{.Imports}}' fmt
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 24 21:26:10 UTC 2022 - 956 bytes - Viewed (0) -
src/cmd/go/internal/modindex/read.go
} case isXTest: fileList = &p.XTestGoFiles importMap = xTestImportPos embedMap = xTestEmbedPos 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 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 29.7K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/cgocall/cgocall.go
const thispkg = "·this·" // Which files are cgo files? var cgoFiles []*ast.File importMap := map[string]*types.Package{thispkg: pkg} for _, raw := range files { // If f is a cgo-generated file, Position reports // the original file, honoring //line directives. filename := fset.Position(raw.Pos()).Filename
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 11.2K bytes - Viewed (0) -
src/cmd/dist/build.go
// Make sure they're installed. importMap := make(map[string]string) for _, p := range gofiles { for _, imp := range readimports(p) { if imp == "C" { fatalf("%s imports C", p) } importMap[imp] = resolveVendor(imp, dir) } } sortedImports := make([]string, 0, len(importMap)) for imp := range importMap { sortedImports = append(sortedImports, imp) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 20 18:34:40 UTC 2024 - 54K bytes - Viewed (0) -
src/cmd/go/internal/work/gccgo.go
return err } if err := sh.Symlink(after, archive); err != nil { return err } case "importmap": if before == "" || after == "" { return fmt.Errorf(`importcfg:%d: invalid importmap: syntax is "importmap old=new": %s`, lineNum, line) } beforeA := gccgoArchive(root, before) afterA := gccgoArchive(root, after)
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/vendor/golang.org/x/tools/go/analysis/unitchecker/unitchecker.go
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 PackageFile map[string]string // maps package path to file of type information
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 02:38:00 UTC 2024 - 13K bytes - Viewed (0) -
src/cmd/go/internal/list/list.go
// CompiledImports. srcPath = p.Internal.CompiledImports[i-nRaw] } if path != srcPath { if p.ImportMap == nil { p.ImportMap = make(map[string]string) } p.ImportMap[srcPath] = path } } } for _, p := range pkgs { do(&p.PackagePublic) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 16 16:56:39 UTC 2024 - 33.3K bytes - Viewed (0)