- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 10 for pkgName (0.21 sec)
-
src/crypto/purego_test.go
allGOARCH := make(map[string]bool) for _, pair := range strings.Split(strings.TrimSpace(string(out)), "\n") { GOARCH := strings.Split(pair, "/")[1] allGOARCH[GOARCH] = true } for _, pkgName := range pkgs { if strings.Contains(pkgName, "/boring") { continue } for GOARCH := range allGOARCH { context := build.Context{ GOOS: "linux", // darwin has custom assembly GOARCH: GOARCH,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:29:44 UTC 2024 - 1.8K bytes - Viewed (0) -
src/internal/coverage/encodemeta/encode.go
tmp: make([]byte, 0, 256), h: md5.New(), } x.stab.InitWriter() x.stab.Lookup("") x.pkgpath = x.stab.Lookup(pkgpath) x.pkgname = x.stab.Lookup(pkgname) x.modpath = x.stab.Lookup(modulepath) io.WriteString(x.h, pkgpath) io.WriteString(x.h, pkgname) io.WriteString(x.h, modulepath) return x, nil } func h32(x uint32, h hash.Hash, tmp []byte) { tmp = tmp[:0] tmp = append(tmp, 0, 0, 0, 0)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 29 17:16:10 UTC 2024 - 5.5K bytes - Viewed (0) -
src/internal/reflectlite/reflect_mirror_test.go
} } } } return v } func loadTypes(path, pkgName string, v visitor) { fset := token.NewFileSet() filter := func(fi fs.FileInfo) bool { return strings.HasSuffix(fi.Name(), ".go") } pkgs, err := parser.ParseDir(fset, path, filter, 0) if err != nil { panic(err) } pkg := pkgs[pkgName] for _, f := range pkg.Files { ast.Walk(v, f) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 19 21:11:15 UTC 2024 - 2.8K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/lostcancel/lostcancel.go
return false } switch sel.Sel.Name { case "WithCancel", "WithTimeout", "WithDeadline": default: return false } if x, ok := sel.X.(*ast.Ident); ok { if pkgname, ok := info.Uses[x].(*types.PkgName); ok { return pkgname.Imported().Path() == contextPackage } // Import failed, so we can't check package path. // Just check the local package name (heuristic). return x.Name == "context" }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 22 19:00:13 UTC 2024 - 9K bytes - Viewed (0) -
src/cmd/go/internal/modindex/scan.go
type rawFile struct { error string parseError string name string synopsis string // doc.Synopsis of package comment... Compute synopsis on all of these? pkgName string ignoreFile bool // starts with _ or . or should otherwise always be ignored binaryOnly bool // cannot be rebuilt from source (has //go:binary-only-package comment)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 8.5K bytes - Viewed (0) -
src/go/types/resolver_test.go
obj := uses[x] if obj == nil { t.Errorf("%s: unresolved qualified identifier %s", fset.Position(x.Pos()), x.Name) return false } if _, ok := obj.(*PkgName); ok && uses[s.Sel] == nil { t.Errorf("%s: unresolved selector %s", fset.Position(s.Sel.Pos()), s.Sel.Name) return false } return false } return true } return true
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 4.5K bytes - Viewed (0) -
api/go1.22.txt
pkg go/types, method (*Alias) String() string #63223 pkg go/types, method (*Alias) Underlying() Type #63223 pkg go/types, method (*Info) PkgNameOf(*ast.ImportSpec) *PkgName #62037 pkg go/types, method (Checker) PkgNameOf(*ast.ImportSpec) *PkgName #62037 pkg go/types, type Alias struct #63223 pkg go/types, type Info struct, FileVersions map[*ast.File]string #62605 pkg go/version, func Compare(string, string) int #62039
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 24 20:54:27 UTC 2024 - 7.7K bytes - Viewed (0) -
src/cmd/compile/internal/types2/named_test.go
} func (*Tree[R]) N(r R) R { return r } type Node[T any] struct { *Tree[T] } func (Node[Q]) M(Q) {} type Inst = *Tree[int] ` f := mustParse(src) pkg := NewPackage("p", f.PkgName.Value) if err := NewChecker(nil, pkg, nil).Files([]*syntax.File{f}); err != nil { t.Fatal(err) } firstFieldType := func(n *Named) *Named {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 16 21:06:56 UTC 2024 - 3.6K bytes - Viewed (0) -
src/cmd/cover/cfg_test.go
incfg := filepath.Join(outdir, tag+"incfg.txt") outcfg := filepath.Join(outdir, "outcfg.txt") p := covcmd.CoverPkgConfig{ PkgPath: ppath, PkgName: pname, Granularity: gran, OutConfig: outcfg, EmitMetaFile: mpath, } data, err := json.Marshal(p) if err != nil { t.Fatalf("json.Marshal failed: %v", err) } writeFile(t, incfg, data)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 12:51:11 UTC 2024 - 7.8K bytes - Viewed (0) -
src/go/types/eval_test.go
func TestIssue65898(t *testing.T) { const src = ` package p func _[A any](A) {} ` fset := token.NewFileSet() f := mustParse(fset, src) var conf types.Config pkg, err := conf.Check(pkgName(src), fset, []*ast.File{f}, nil) if err != nil { t.Fatal(err) } for _, d := range f.Decls { if fun, _ := d.(*ast.FuncDecl); fun != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 19:56:15 UTC 2024 - 8.3K bytes - Viewed (0)